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]

Parameters

/s
Includes subdirectories of the specified directories in the output.
/v
Writes progress reports while scanning subdirectories. The /v parameter is 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 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.
/l
Writes overflows to the log file Diruse.log in the current directory.
/a
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.
/d
Displays only directories that exceed specified sizes.
/o
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.
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.

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

Note