>>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