471,872 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

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 5419
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
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.