Folder size

  • Thread starter Thread starter BlueKnight
  • Start date Start date
B

BlueKnight

Hi guys,

How do I get the size of a folder. Is there a function
in .net or do I have to invoke a component/dll.Couldnt
find anything in DirectoryInfo or Directory classes.

Thanks in advance
 
You would have to walk through the files and get the sizes of each. A
folder inherently doesn't have a size. What you mean is actually the size
of all the files inside the folder.

-vJ
 
Back
Top