>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