Check for the existence of a file or directory.
Check for the existence of a file or directory.
- INFILE
- Input file or directory. Name of file or directory to check for the existence of.
The file "[las.images]alaska;img" is checked for existence. OPTION is set to LAS by default and correctly corresponds to the way INFILE is named.
The directory "[las.images]" is checked for existence.
A file or directory is checked to determine if it exists. If the file or directory exists, CMEXIST returns a successful status. If the file or directory does not exist, an error message is displayed and CMEXIST returns a fail status.
None.
The error message displayed immediately preceding this message is the specific error encountered. Processing is terminated.
The file or directory <xxxxx> does not exist.