Skip to content

File\_ExistFile

Check for file existence

File_ExistFile(sFile, bMustExist) As Boolean

sFile (String)

Filename

bMustExist (Boolean)

File must exist

Result will be stored in gbValue. Function will return false if file does not exist and bMustExist is true

VBScript

If bStatus Then bStatus = File_ExistFile("C:\CapaInstaller.txt", False)
If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

File_CreateEmptyFile