Fexists – Visara Master Console Center Scripting Guide User Manual
Page 105
Chapter 5 Script Commands
Scripting Guide
105
FEXISTS
Syntax:
FEXISTS( $FileName) ==> %Success
Description:
Determines if a file exists.
Action:
The file is checked to ensure it exists in the current or specified
directory.
Parameters:
$FileName. String expression. The case sensitive name of the file to
verify if it exists. Include any necessary file path.
Returns:
Numeric value, as follows.
Value
Meaning
0
False, file was not found
1
True,
file
exists
Notes:
1. Refer to Manifest Constants on page 42 for information on the
constants reference list.
2. If FileName does not exist, FALSE is returned.
3. FEXISTS can be used to verify any file on the MCC unit.
4. Using NFS, it is possible to verify virtually any file on any server or
mainframe from the MCC unit.
Example:
%Success := FEXISTS( “SYS5”)
%Success := FEXISTS( “user-data/config/” + $OSName)
See Also:
FCLOSE, FDELETE, FOPEN, FREAD, FRENAME, FREWIND,