Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copyfile
Message
De
24/01/2008 09:03:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01284907
Message ID:
01284953
Vues:
28
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform