Memo
DirUse is similar to du used in UNIX.
Diruse Overview
http://technet.microsoft.com/en-us/library/cc781726%28v=ws.10%29.aspx
diruseコマンドでディスクの使用量を調べる
http://www.atmarkit.co.jp/fwin2k/win2ktips/424diruse/diruse.html
Download
http://download.microsoft.com/download/win2000platform/diruse/1.00.0.1/NT5/EN-US/diruse_setup.exe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
c:\>diruse DIRUSE displays a list of disk usage for a directory tree(s). Version 1.20 DIRUSE [/S | /V] [/M | /K | /B] [/C] [/,] [/Q:# [/L] [/A] [/D] [/O]] [/*] DIRS /S Specifies whether subdirectories are included in the output. /V Output progress reports while scanning subdirectories. Ignored if /S is specified. /M Displays disk usage in megabytes. /K Displays disk usage in kilobytes. /B Displays disk usage in bytes (default). /C Use Compressed size instead of apparent size. /, Use thousand separator when displaying sizes. /L Output overflows to logfile .\DIRUSE.LOG. /* Uses the top-level directories residing in the specified DIRS /Q:# Mark directories that exceed the specified size (#) with a "!". (If /M or /K is not specified, then bytes is assumed.) /A Specifies that an alert is generated if specified sizes are exceeded. (The Alerter service must be running.) /D Displays only directories that exceed specified sizes. /O Specifies that subdirectories are not checked for specified size overflow. DIRS Specifies a list of the paths to check. Note: Parameters can be typed in any order. And the '-' symbol can be used in place of the '/' symbol. Also, if /Q is specified, then return code is ONE if any directories are found that exceed the specified sizes. Otherwise the return code is ZERO. Example: diruse /s /m /q:1.5 /l /* c:\users |
1 2 3 4 5 |
c:\>diruse c:\windows Size (b) Files Directory 37022964054 106493 SUB-TOTAL: C:\WINDOWS 37022964054 106493 TOTAL: C:\WINDOWS |
You can also check if you have access to the shared folder.
1 2 3 4 5 |
c:\>diruse /K /, \\freenas.rootlinks.net\data\vm_Backup Size (kb) Files Directory 513,802,265.40 26 SUB-TOTAL: \\FREENAS.ROOTLINKS.NET\DATA\VM_BACKUP 513,802,265.40 26 TOTAL: \\FREENAS.ROOTLINKS.NET\DATA\VM_BACKUP |