Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP does not like
Message
From
15/07/2004 23:49:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00924797
Message ID:
00925030
Views:
18
>Can someone see a work around for this? VFP does not like the 2 word dir name such as program files
>This does not work
>copy FILE c:\program files\palm\&whatdir\tracer\tracer.txt TO c:\tracer.txt
>but this does:
>copy FILE c:\pts\palm\&whatdir\tracer\tracer.txt TO c:\tracer.txt
>
>Thanks

heya Timothy
I'm sure someone has touched on this so far .. ...
&whatdir really needs to be evaluated first .
lcdir = (whatdir) 
lcfromFile = ['c:\program files\palm\] + lcdir + [\tracer\tracer.txt']
then
copy file (lcfromFile) to c:\tracer.txt 
should work for you .
if it doesn't, directly, then muck about with the variables and constants until it does work for you ... there's a bit to be had about
the space [as you've found out already] - but if you encapsulate the
WHOLE THING in a single quote, after evaluation, you should be fine.
gufen xBase [Bill]
ps - I missed it ? which version of VFP ? which OS ?
Previous
Reply
Map
View

Click here to load this message in the networking platform