Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with copying file
Message
De
27/04/2004 23:51:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/04/2004 23:47:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00898829
Message ID:
00898831
Vues:
12
Use parentheses, to tell VFP that you are not using a literal, but a variable or expression:
copy file (infile) to ("c:\"+juststem(infile)+".pdf")
Greetings,

Hilmar.

>i'm trying to do a copy from within foxpro. i have infile="c:\drs\test.pdf". i try to copy the file to a different directory like,
>
>
copy file &infile to "c:\"+juststem(infile)+".pdf"
>
>why am i getting an error, like there "command contains unrecognized phrase/keyword"
>
>if i try something like,
>
>
copy file infile to "c:\"+juststem(infile)+".pdf"
>
>i get error that file infile does not exist.
>
>pls help me!!!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform