not empty(sys(2000,tcFile))
is reliable it has one unpleasant side effect I noticed recentlyHandle = FindFirstFile(@FileSkeleton, @FindFileData)The handle is not closed by vfp and hence you cannot remove the file. (unless another sys(2000) is done I suppose)
*----------------- Function FileExists(FileName) declare Integer GetFileAttributes in win32api string @ return (GetFileAttributes(@FileName) <> -1) endfunc *-------------------------------------------------------------------------->FILE function is not exacly reliable, it was discussed here before. You better use adir and check for adir(laFiles,'c:\winnt\fonts\code39two.ttf')>0 There was another suggestion in this thread, but I have to find it first.