PNRT
asked on
VB.Net - A fast way to find folder size or number of files in a folder/sub folders
Hi Experts. I am writting a program that iterates through very large folders (100G to 500G) and I need to be able to show the progress of the program. To do that I first need a fast way to get either the size of the folder or the number of files in the folder. So this way I guage the progress and show it.
A short wait while the process prepares itself would be OK for the user, but iterating through the folder is impractical as the program does this anyway and it takes too long.
I see scripting has a way to do it quickly but I understand this is frowned upon in VB.Net.
It must of course include all sub folders
As Windows seems to have this data available anyway, perhaps there is a way to access this quickly?
Many thanks
A short wait while the process prepares itself would be OK for the user, but iterating through the folder is impractical as the program does this anyway and it takes too long.
I see scripting has a way to do it quickly but I understand this is frowned upon in VB.Net.
It must of course include all sub folders
As Windows seems to have this data available anyway, perhaps there is a way to access this quickly?
Many thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.