File Systems
DirUse is a command-line tool that can be used to determine the actual usage of space for compressed files and folders in NTFS volumes. The syntax of the command is:
diruse [/s | /v] [/m | /k | /b] [/c] [/,] [/l] [/*] [/q: # ] [/a] [/d]
[/o] [folders]
Table 17.17 describes the switches available with DirUse.
Table 17.17 DirUse Switches
Switch |
Description |
---|---|
/s |
Specifies whether subfolders are included in the output. |
/v |
Outputs progress reports while scanning subfolders. 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 |
Uses Compressed size instead of apparent size. |
/, |
Uses thousand separator when displaying sizes. |
/l |
Outputs overflow to log file Diruse.log. |
/* |
Uses the top-level folders residing in the specified dirs . |
/q:# |
Marks folders 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 when specified sizes are exceeded. (The Alerter service must be running.) |
/d |
Displays only folders that exceed specified sizes. |
/o |
Specifies that subfolders are not checked for specified size overflow. |
folders |
Specifies a list of the paths to check. |
/? |
Displays user help. |
The important switch for compressed folders and files is /c , which causes DirUse to display the actual size of a compressed file or folder instead of apparent uncompressed size. For example, if your drive D is an NTFS volume, to get the disk space actually used (in megabytes) and the number of files in each of the folders, at the command prompt type:
diruse /s /m /c d:
To see compression information for an individual file, open Windows Explorer, right-click the file, and then click Properties .
For more information about DirUse, see the Windows 2000 Resource Kit Tools Help.
Note
DirUse is a Windows 2000 Resource Kit tool. Install this tool from the Windows 2000 Resource Kit companion CD.