>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 ?