Fastest way to get size of a directory including all files and sub folders

  • Thread starter Thread starter wingers
  • Start date Start date
W

wingers

Guest
Hi

I know there are lots of different methods you can use in VB and .NET to get the size of files and folders, and that some of them especially on larger directories can be quite slow.

Speed is the priority for me here, so what methods do you recommend to get the total size, and a count of files / folders for a specified location e.g. C:\Users.

This is to be used in an app I am creating which I hope will act in a similar way to TreeSize etc so that I can sort by size and easily see at a glance which locations are using the most disk space.

Anything else you need me to clarify then please ask.

Many thanks.


Darren Rose

Continue reading...
 
Back
Top