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