FileExists
Use this function to determine whether the specified file exists in the specified directory.
Syntax
FileExists("FileName")
where:
- FileName is the name of the file, including the extension, to search for. In batch mode, the file name must be relative to the current directory. For Longview Smart Client, the file name must be relative to the working directory. You can also specify a full path to search in an alternate directory.
Syntax example
If FileExists("Reports.xlsx")
Set VARIABLE x = FileExists("Reports.xlsx")
// where: x is a variable of type NUM. x returns 1 if the file exists and 0 if it does not.