How to get the list of disk space usage for each folders.

  • Thread starter Thread starter Pleo
  • Start date Start date
P

Pleo

Are there any tools that can list the usage of disk space for each folders.

For example (listed as below)
Folders:
Account (uses 1Gb)
Engineering (uses 4Gb)
Design (uses 50Gb)

Thanks.
 
Pleo said:
Are there any tools that can list the usage of disk space for each folders.

For example (listed as below)
Folders:
Account (uses 1Gb)
Engineering (uses 4Gb)
Design (uses 50Gb)

Thanks.
- - - - - - - - - - begin screen capture - - - - - - - - - -
<Win2000> c:\cmd>demo\ShowFolderSpace c:\wylbur\xlib "c:\program files\Microsoft Office" c:\cmd\demo d:\download c:\download
c:\wylbur\xlib 227,533 bytes
c:\program files\Microsoft Office 2,338 bytes
c:\cmd\demo 278,259 bytes
d:\download 132,966,404 bytes
c:\download 243,699 bytes

<Win2000> c:\cmd>rlist demo\ShowFolderSpace.cmd
=====begin c:\cmd\demo\ShowFolderSpace.cmd ====================
01. @echo off
02. for %%a in (%*) do call :main "%%~a"
03. goto :EOF
04. :main
05. for /f "tokens=3" %%b in (
06. 'dir "%~1" ^| find "File(s)"'
07. ) do call :print "%~1" "%%b"
08. goto :EOF
09.
10. :print
11. set dir=%~1 @
12. set bytes=%~2@
13. :pad
14. if "%bytes:~20,1%" EQU "@" goto :display
15. set bytes= %bytes%
16. goto :pad
17. :display
18. echo %dir:~0,38% %bytes:@=% bytes
19. goto :EOF
=====end c:\cmd\demo\ShowFolderSpace.cmd ====================
- - - - - - - - - - end screen capture - - - - - - - - - -
 
Back
Top