Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Posting Data to a URL
Message
De
25/09/2003 16:46:46
 
 
À
25/09/2003 16:29:36
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00827092
Message ID:
00832469
Vues:
23
>Sorry, I was not very accurate in my description of the problem. This occurs when I am trying to use the '&' or the () operators to copy the file. For example
>x=drive and directory for the windows system folder
>y=drive and directory for a file
>a=x+'\xxx xxxx.xxx'
>copy file &a to somewhere or copy file (a) to somewhere gives me errors. I tried putting the file name in the format '\'+'"'+'xxx xxxx.xxx'+'"' but that did not help. Perhaps there is some other format?

You're getting the different methods of expanding or representing files mixed up.

cFrom = x + "\xxx xxxx.xxx"
cTo = x + "\other folder\new name.xyz"
COPY FILE (cFrom) TO (cTo)

should work just fine. But don't use single letter variable names, especially A-J, and M, as that's the old xBase reference to the first 10 work areas and memory variables.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform