Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seeking Alternative to COPY FILE Command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00444304
Message ID:
00445486
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform