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)
Filename
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”VBScript
If bStatus Then bStatus = File_ExistFile("C:\CapaInstaller.txt", False)If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”