Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Check for file existence

 

Syntax

File_ExistFile(sFile, bMustExist) As Boolean

 

Parameters

sFile (String)

Filename

bMustExist (Boolean)

File must exist


Return value

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


Example

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

Scripting Guidelines


Related functions

File_CreateEmptyFile

  • No labels