Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Better way to copy files
Message
De
07/02/2002 12:00:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00616676
Message ID:
00616713
Vues:
27
Michelle,

The syntax you are using should work, assuming filevar1 and filevar2 are character expressions and the files exist.

How are these two variables created (can you post more code)? Please post what their contents are when it fails...

>I'm writing a backup program and need to be able to copy files from within VFP7. Using COPY FILE (filevar1) TO (filevar2) is giving me a headache. Sometimes it works, sometimes it says "Not a character expression". I've tried adding quotes around it like ["]+ (filevar1) + ["] in case it's an issue with spaces in the file name, but it doesn't like that, either. Is there a better way of doing this? I searched the help, but didn't see another command for it. Any ideas?
>
>Thanks,
>
>Michelle
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform