Determine if a file or directory exists.
Determine if a file or directory exists. Set the variable specified in the STATUS parameter to "YES" or "NO" accordingly, depending if the file or directory exists or not.
- INFILE
- Input file or directory. Name of file or directory to check for the existence of.
- STATUS
- Status of the existence of the file or directory. Set the variable specified by the STATUS parameter to "YES" or "NO", depending upon if the file or directory exists or not, respectively.
The file "[las.images]alaska;img" is checked for existence. If the file exists, the variable specified in STATUS is set to "YES." If the file does not exist, the variable specified in STATUS is set to "NO."
The directory "[las.images]" is checked for existence. If the directory exists, the variable specified in STATUS is set to "YES." If the directory does not exist, the variable specified in STATUS is set to "NO."
A file or directory is checked to determine if it exists. If the file or directory does not exist, the parameter STATUS is set to "NO." If the file or directory does exist, the parameter STATUS is set to "YES."
None.
None.