Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C routines for copying files from directory X to dir Y
Message
From
12/06/2002 09:47:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/06/2002 09:40:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00667332
Message ID:
00667337
Views:
21
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform