File_ExistDir
Description
Section titled “Description”Check for directory existence
Syntax
Section titled “Syntax”File_ExistDir(sDirectory, bMustExist) As Boolean
Parameters
Section titled “Parameters”sDirectory (String)
Section titled “sDirectory (String)”Directory to find
bMustExist (String)
Section titled “bMustExist (String)”Directory must exist
Return value
Section titled “Return value”Result will be stored in gbValue. Function will return false if directory does not exist and bMustExist is true
Example
Section titled “Example”If bStatus Then bStatus = File_ExistDir("C:\CapaInstaller", False)If bStatus and Not gbValue Then bStatus = File_CreateDirectory("C:\CapaInstaller")Related functions
Section titled “Related functions”File_CreateDirectory File_CopyTree Constants Package Property Variables