Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help With: Copy To in Macro Command
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Help With: Copy To in Macro Command
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01248353
Message ID:
01248353
Views:
67
I have the following:
lcCmd=[Copy To ]+thisform.exportfilename1+[ DELIMITED]
&lcCmd
Where thisform.exportfilename1="C:\Documents and Settings\kirk\My Documents\0001_NHSN_JUL07.CSV DELIMITED"

and lcCmd ends up being:

"Copy To C:\Documents and Settings\kirk\My Documents\0001_NHSN_JUL07.CSV DELIMITED"

When the code runs I get the following error:
"Command contains unrecognized phrase/keyword."

But I think is is because of the long file name with the spaces. If I just change it to c:\0001_NHSN_JUL07.CSV
it all works.

Thanks

Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform