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:
00445486
Views:
21
>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

I agree with Ed's approach via the code he supplied.

Taking it one step further. Making this a COM Server so you just pass start of the job to the server it would really save time and bandwidth.

Personally I like the ActiveX approach using DynaZip myself. I get a snapshot of everything as it hits the table. When you get into dbf's that are in excess of 500 meg you might rethink the flock() becasue of time locked. But YMMV

__Stephen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform