Question Copy multiple files showing progress in progressbar

ExEdzy

Active member
Joined
Nov 25, 2010
Messages
37
Programming Experience
3-5
Hey everyone :)
So as it says in title i need to copy several files from one folder to another..
But i dont need to copy folder with files. i need to copy several files to another folder..

And show progress in progressbar..
is there a way how to do it, cos i found only how to copy 1 file showing progress..
 
There's nothing built in that will do it for you. You have to calculate and display the progress yourself. You can either copy the files one by one and update the progress bar inbetween, or else you can copy at the byte level and update the progress bar after each block. The first option is easier but the second gives you more fine-grained progress. Either way, I would suggest using a BackgroundWorker to copy the files, which has an inbuilt mechanism to pass progress updates to the UI.
 
Back
Top