File_ExistFile
Description
Section titled “Description”Check for file existence
Syntax
Section titled “Syntax”File_ExistFile(sFile, bMustExist) As Boolean
Parameters
Section titled “Parameters”sFile (String)
Section titled “sFile (String)”Filename
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”File must exist
Return value
Section titled “Return value”Result will be stored in gbValue. Function will return false if file does not exist and bMustExist is true
Example
Section titled “Example”If bStatus Then bStatus = File_ExistFile("C:\CapaInstaller.txt", False)If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)