ProgressBar Help

  • Thread starter Thread starter Mayolo Juarez via DotNetMonster.com
  • Start date Start date
M

Mayolo Juarez via DotNetMonster.com

How i can show a progressbar when i copy a folder
i use filesytemobject and i need to show the progressbar while i use
the function copyfolder
 
Mayolo,

Because that when you copy a folder and don't use the xcopy probably are
copying them file by file. You can use the amount of files or first
calculate the total lenght of the files to copy with the fileinfo class and
use that in your steps.

I hope this helps,

Cor
 
Mayolo, could you be more specific about what class and method you are
using to do the copying? I don't know of a FileSystem class in the
..NET Framework or a class with a CopyFolder method.

In any case, it is unlikely that any method that is provided by the
Framework would provide you with the kind of transparency that you'd
need to run a ProgressBarduring its operation. You are going to have
to write your own method to copy files one-by-one, updating the
ProgressBar in between distinct copies.

Regards,

Adam
 
Back
Top