Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of COPY FILE and PUTFILE
Message
De
25/04/2000 10:24:47
 
 
À
25/04/2000 08:34:38
Diane Comeau
Secure Financial Services, Inc
Colchester, Vermont, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00363073
Message ID:
00363140
Vues:
26
>pZipFile = PUTFILE("Zip FileName:","",'ZIP')
>COPY FILE gentemp.zip TO &pZipFile

Like Cetin showed, COPY FILE gentemp.zip TO (pZipFile) will work. The reason is, VFP doesn't do filenames with spaces without quotes. Try USE My File.dbf. You'll need to put quotes around it to work. And using &, all you do is substitue pZipFile for a filename with spaces, so it blows. That means if pZipFile was '"' + pZipFile + '"' that would probably work too, but, you should try to aviod & if its possible where either EVAL() or () work too.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform