Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C routines for copying files from directory X to dir Y
Message
De
12/06/2002 09:47:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/06/2002 09:40:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667332
Message ID:
00667337
Vues:
20
>Does anyone have C code for copying files from one directory to another.
> DOS and FOX to slow here.
>
> I would like to incorporate this routine into my projects.
>
> Something like this --
>
> ie. I pass 2 parameters (Source, Target)
> =fx_copy('k:\client\markup.dbf' , 'n:\client\newmarket\markup2.dbf')
>
> Thanks,
> George Rembos

I very much doubt you will get much better performance than with XCOPY (XCOPY can copy an entire folder, with subfolders), or a function from the Windows API. I suppose the main bottleneck is disk access, and that can't be avoided when copying files.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform