Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Posting Data to a URL
Message
From
25/09/2003 16:46:46
 
 
To
25/09/2003 16:29:36
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00827092
Message ID:
00832469
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform