Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with COPY FILE command?
Message
From
12/06/2003 03:36:32
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00799197
Message ID:
00799254
Views:
23
Hi Barbara,

Just noticed that you have brackets around the to and from files. Normally there are no brackets, so my guess is this is the problem.

I had similar things happen to me using DELETE FILE("filename.ext"). I had been using delete this way for many years and it was only when I was getting the occasional file not deleted that the UT set me straight and no problems since.

Regards
Doug Johnston





>Has anyone run into problems using the COPY FILE command in VFP 7 SP1? I'm
>getting a "File not found" error with this command:
>
>COPY FILE (tcCustPath+"NextPKey.dbf") TO (lcSubDir+"NextPKey.dbf")
>
>Wait windows inserted before this command show that tcCustPath and lcSubDir
>contain what we expect them to, including a backslash at the end of each
>variable. The command works successfully from the command window if we
>initialize tcCustPath and lcSubDir by hand.
>
>My client has an employee who says she's had other problems with the COPY
>FILE command, and avoids using it. I haven't run into problems with COPY
>FILE until now.
>
>I'm going to their site tomorrow to see if I can figure this out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform