Link to home
Start Free TrialLog in
Avatar of PeterdeB
PeterdeBFlag for Netherlands

asked on

How to copy all contents of a cd(except for two folders) to harddrive superfast?

Hi folks!

What is the fastest function or procedure to copy an entire cd (excluding two folders) to my harddrive?

Currently my code copies the entire cd contents and afterwards it deletes the folders that I didn't want. But since those folders measure up to 130 MB I think I better search for some other workaround ;-)

One assumption >Ā using the windows api for this copying thing and having it display all filenames slows down the copying I reckon? using xxcopy would be faster?

Kind regards,

Peter

The working sample equals 500 points
ASKER CERTIFIED SOLUTION
Avatar of 2266180
2266180
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PeterdeB

ASKER

Works like a charm exactly what I needed thanks a bunch!!

Kind regards,

Peter ;-)

Ps since the copying is an intensive and lengthy operation, should I use application.processmessages?
if you files are big, then I suggest moving the whole function into a thread. if you also want progress, then you wil have to give up the copyfile function and write one your own and then communicate from the thread to the main app the progress. or just use applicaiton.processmessages but make sure the user will not click twice on the copy button ;)