中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-09 10:29
47,811 topics / 349,895 posts / today 0 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » [Help] Calculate the size of each directory
Printable Version  998 / 4
Floor1 lfzzj Posted 2008-07-29 17:53
初级用户 Posts 56 Credits 159
There are many directories inside d:\aaa on my computer, for example 111 222 333, and inside each directory there are many subdirectories and files. I want to calculate the sizes of these directories like 111 222 333. How should I write it?
Floor2 bat-zw Posted 2008-07-30 01:06
金牌会员 Posts 1,276 Credits 3,105


[ Last edited by bat-zw on 2008-7-30 at 01:13 AM ]
Floor3 lfzzj Posted 2008-07-30 12:43
初级用户 Posts 56 Credits 159
Thank you very much, I learned quite a lot.
Floor4 zhoumeng Posted 2008-07-31 09:43
初级用户 Posts 7 Credits 34
Why didn't I think of that? For a single directory, size is a whole.
For a large directory, then the sizes of the small directories inside can be calculated.
But could you modify it so the unit is KB, and put a comma every three digits?
Floor5 pusofalse Posted 2008-08-03 02:05
银牌会员 Posts 646 Credits 1,604



Converted to KB.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023