General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only