What Is do is use different sub-folders when I have multiple files to check on. Then I use the chkfile on the folder.
In my case if the folder exists, I delete the folder contents, delete the folder, and recreate the folder. When I am done I delete the folder. Dan From: [email protected] Sent: Thursday, June 14, 2012 12:55 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: ChkFile in version 9.1 Okay, now I see it. I guess I've been lucky then? I've always used wildcards up until now, and it's never been unpredictable. So then is there any reliable way to check for files in a directory without having to load a directory listing into a file, load into a temp table, etc.? Alot of work when a simple Chkfile always used to work for me... Karen In a message dated 6/14/2012 2:48:52 PM Central Daylight Time, [email protected] writes: Karen, Better make that trip to the Opthamologist... ;-) From the 6.5 HelpFile: "CHKFILE(filename)) Checks to see if a file exists. If no path is specified, the function checks for the file in the current directory. Otherwise, the function checks for the file in the specified location. The function returns a 1 if the file is found, and 0 if it is not found. Wildcards in the filename will produce unpredicatable results. " From the 9.1 HelpFile: "(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. Wildcards in the filename will produce unpredicatable results."

