Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seeking Alternative to COPY FILE Command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00444304
Message ID:
00444314
Views:
46
>>I need to copy DBFs / CDXs / FPTs from one directory to another (for backup purposes). The VFP command COPY FILE fails if the table is open. I am currently shelling to DOS and using the COPY command (in DOS) which works even when the table is open, but I would rather not shell out to DOS. Are there any alternatives? I also don't want to resort to ActiveX controls.
>> Thanks, Chaim

>You could always have the table open and do a COPY STRUCTURE TO your backup area WITH PRODUCTION. Then open the empty table you created and append from the original with a SCAN scatter memvar memo from the original file ENDSCAN
>
>I am sure there are others who have a faster better method, but that is just off the top of my head.
Why not simply USE the file SHARED, then COPY WITH CDX to the new location???
censored.
Previous
Reply
Map
View

Click here to load this message in the networking platform