>be aware that the file() function can be somewhat dangerous, because it will always search the VFP path, even though you may specify a directory. So file('c:\temp\temp1\temp2\yourfile.txt') will actually return true even if yourfile.txt does not exist in c:\temp\temp1\temp2\, as long as yourfile.txt exists in one of the directories in your path setting. Adir(dummy,'c:\temp\temp1\temp2\yourfile.txt')>0 is always safe.
Thanks