>>Never trust file()!
>>
>>?dir('\yourtable.dbf')
>>?adir(temp,'\yourtable.dbf')>0
>>
>>
>Can you elaborate, please? I tried to reproduce a problem on demand in IDE and I can not.
This message contains a big typo, when I meant file(), I accidentally wrote dir().
The problem with file() is when you use file() to check for a file in the root (directory or mapping). As long as the file is in the path, VFP will find it even if it's NOT in the root.