Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

dir /totalsize

Dec
21
0
How do I do a dir on a directory (including it's subdirs) when all I want returned is the total size of that whole structure.

Thanks,
Jim
 
On 2009-02-23 18:18, jimklein wrote:

> How do I do a dir on a directory (including it's subdirs) when all I want returned is the total size of that whole structure.

dir /a /s /u2 targetdir

or

echo %@filesize[/s targetdir]
 
Ah, I see that if you happen to be looking for an accurate subdirectory count, /h should also be used to keep the "." and ".." directories from being counted.
 

Similar threads

Back
Top