DIRUSE (2K Resource Kit / XP Support Tools)

Display disk usage.

      DIRUSE [options] Folders...

   /M  Display in Mb
   /K  Display in Kb
   /B  Display in bytes (default)
   /,  Use thousand separator when displaying sizes. 
   /Q:#  Quota limit, mark folders that exceed the size (#) with a "!".
         set %errorlevel% to ONE if any folders are found that
         exceed the specified size

   /*  Report on one level of subfolders (top-level folders)

   /D  Display only folders that exceed specified sizes.
   /S  Include detail of every subfolder in the output
   /O  Don’t check subfolders for quota overflow.
   /V  Display progress report for every subfolder

   /C  Use Compressed size instead of apparent size.
   /L  Output overflows to logfile .\DIRUSE.LOG.
   /A  generate an alert if quota is exceeded
       (requires the Alerter service)

Options for DIRUSE can be specified with either -option or /option

This utility does still work under Windows 10, although (like all Resource Kit tools) it is unsupported.


C:\> DIRUSE /M /q:1.5 /* e:\users

“Work is achieved by those employees who have not yet reached their level of incompetence” ~ Laurence J. Peter (The Peter Principle)

Related commands:

DIR - Display a list of files and folders.
DirQuota - Create and manage quotas (File Server Resource Manager).
XCOPY /L - List Files.
FREEDISK - Check free disk space.
FSUTIL - File and Volume utilities.
Equivalent PowerShell: DirUse Script to list directory sizes.
Equivalent bash command (Linux): quotacheck - Scan a file system for disk usage.

Copyright © 1999-2021 SS64.com
Some rights reserved