(CHKFILE('filespec'))
Checks to see if a file or folder name exists. If no path is specified, the function checks for the file or folder name in the current directory. Otherwise, the function checks for the file or folder name in the specified location.
The function returns a 1 if the file or folder name is found, and 0 if it is not found. Wild cards in the filename will produce unpredictable results.