>>I am using VFP native command:
>>
>>COPY FILE FileName1 TO FileName2
>>
>>Is there a way to know whether the file has been copied, after
>>command is applied ?
>>
>>Moises
>
>IF FILE('FileName2')
> *-- file is OK
>ELSE
> *-- didn't copy
>ENDIF
>
>HTH, Harry
First of all this will not detect whether you have an old copy of the file, or the new copy. And secondly, file() does not always respect the path. If you try ?file('yourfile'), it will return true as lonmg as yourfile is in VFP's path. Even ?file('\yourfile') will return true, it will not respect the backslash.