Windows Tools

DirUse Syntax

Overview | Syntax | Examples | Related Tools Open Command Prompt

DirUse uses the following syntax:

One Step 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 Example 2: Determine Compressed File and Folder Sizes.

Displays the thousands separator (comma or period) in file sizes.
/q: Size
Marks directories that exceed the specified size with an exclamation point (!). 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 Example 1: List Current File Usage for a Shared Volume for examples where DirList is a folder on a network volume and where DirList contains a list of folders.

Displays command-line usage.