Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copyfile
Message
From
24/01/2008 09:03:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01284907
Message ID:
01284953
Views:
27
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform