469,609 Members | 1,666 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Folder size

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
Nov 16 '05 #1
2 5351
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

"BlueKnight" <an*******@discussions.microsoft.com> wrote in message
news:aa****************************@phx.gbl...
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

Nov 16 '05 #2
Hi

Please check the following

http://www.codeproject.com/useritems/showdirsize.asp

HTH
Ravikanth[MVP]

"BlueKnight" wrote:
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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Chris | last post: by
8 posts views Thread by Ty Moffett | last post: by
12 posts views Thread by grouped2000 | last post: by
6 posts views Thread by Caleb Hattingh | last post: by
3 posts views Thread by TyBreaker | last post: by
9 posts views Thread by Eugene Anthony | last post: by
4 posts views Thread by shuisheng | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.