Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a file to an Empty Folder
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01101321
Message ID:
01101405
Views:
9
>Hi Naomi,
>
>Excuse me, but I think that just posted part of the problem and part of solution.
>
>The command COPY FILE doesn't work when the path has spaces, nor using the solution suggested by Jim (COPY FILE URV.DBF TO "C:\Documents and Settings\URV.DBF")
>
>Then I created a Function that when I inform the path windows it returns me a path DOS for instance:
>
>cDosPath = GetDosPath ("c:\program Visual files\MicroSoft FoxPro 9")
>
>Supposing that I have installed Visual FoxPro 8 and Visual FoxPro 9 the returned path will be C:\PROGRA~1\MICROS~2, therefore a path valid DOS that being used in the command COPY FILE will work perfectly.
>
>For instance:
>COPY FILE URV.DBF TO ( GetDosPath("c:\program Visual files\MicroSoft FoxPro 9") + "\URV.DBF")
>
>[]´S
>
>Dionísio

Copy file should work just fine with long path if it's correctly spelled and enclosed into quotes. Something else was wrong.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform