Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C routines for copying files from directory X to dir Y
Message
 
À
12/06/2002 09:47:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667332
Message ID:
00667628
Vues:
23
>>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.
>

In addition the xcopy command is written in 'C' specifically for copying files. I would guess that it would be as optimized as it could be.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform