Diruse Syntax

Updated: March 28, 2003

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

DirUse Syntax

DirUse uses the following syntax:

Art Image diruse [/s|/v] [/m|/k|/b] [/c] [/,] [/q: Size] [/l] [/a] [/d] [/o] [/*] DirList [/? | /h | /help]


Includes subdirectories of the specified directories in the output.

Writes progress reports while scanning subdirectories. The /v parameter is ignored if /s is specified.

Displays disk usage in megabytes.

Displays disk usage in kilobytes.

Displays disk usage in bytes (default).

Uses compressed file size instead of apparent file size.

See Diruse Examples.

Displays the thousands separator (comma or period) in file sizes.

/q: Size
Marks, with an exclamation point (!), directories that exceed the specified size. If /m (megabytes) or /k (kilobytes) are not specified, the size is assumed to be in bytes. If /q is specified and any directory is found that exceeds the specified size, the return code is ONE. Otherwise the return code is ZERO.

Writes overflows to the log file Diruse.log in the current directory.

Specifies that an alert is generated if sizes specified by the /q: parameter are exceeded. The Alerter service must be running, and the alert appears only when you are using DirUse.

Displays only directories that exceed specified sizes.

Specifies that subdirectories are not checked to see if they exceed the specified size.

Uses the top-level directories residing in the directories specified in DirList.

Specifies a list of directories to check. DirList is required if you are doing anything other than getting command-line usage. Use semicolons, commas, or spaces to separate multiple directories.

See Diruse Examples for examples where DirList is a folder on a network volume and where DirList contains a list of folders.

/?| /h| /help
Displays command-line usage.


  • When run without parameters, DirUse displays command-line usage.

See Also

Community Additions