Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of COPY FILE and PUTFILE
Message
From
25/04/2000 10:24:47
 
 
To
25/04/2000 08:34:38
Diane Comeau
Secure Financial Services, Inc
Colchester, Vermont, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00363073
Message ID:
00363140
Views:
25
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform