>>I was refering to yours modification. However Cetin's code has the same probem. It'll check if file 'EMPS.exe' exists anywhere along VFP search path. To check for a file in specific location, you can use SYS(2000) or ADIR()
>
>Tssk tssk:) I think you made a typo.
>
>lcFileName = "AlocalFile.txt"
>STRTOFILE("Are you sure?",m.lcfileName)
>
>? "Exists in search path",;
> FILE(m.lcfileName)
>? "Exists in the same folder where exe is",;
> FILE(forcepath(m.lcFileName,justpath(application.servername)))
>
>ERASE (m.lcFileName)
>
Cetin
Ok, you two take it to the street, but which one is the one to use? They both work, right? Why did Sergey think I needed to use SYS(2000) to handle it?