how can i do it? without having to recursively count all files and monitoring how much files have been copied?? i want to just use fileio.filesystem.copydirectory and get a progress bar for it...is it possible??
Printable View
how can i do it? without having to recursively count all files and monitoring how much files have been copied?? i want to just use fileio.filesystem.copydirectory and get a progress bar for it...is it possible??
You will need to give a max and min value so i cant see anyway of getting around it without calculating the number of files. If nothing is going to be done while the copying is in progress then i think you can use the wait cursor and just call it before the copying is about to begin and then setting it back to default after the copying has finished.
Hope this helps
:thumb:
CopyDirectory is an overloaded function so you can actually set it to show a standard copy dialog like the ones in the explorer.
VB Code:
FileIO.FileSystem.CopyDirectory("h:\source", "h:\destination", Microsoft.VisualBasic.FileIO.UIOption.AllDialogs)
cool thanks!!!