Hi Henry, welcome to the board.i am not sure exactly what you mean, but if we take a look at the possibilties of diruse :
code:
C:\WINNT>diruseDIRUSE displays a list of disk usage for a directory tree(s). Version 1.20
DIRUSE [/S | /V] [/M | /K | /B] [/C] [/,] [/Q:# [/L] [/A] [/D] [/O]] [/*] DIRS
/S Specifies whether subdirectories are included in the output.
/V Output progress reports while scanning subdirectories. 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 Use Compressed size instead of apparent size.
/, Use thousand separator when displaying sizes.
/L Output overflows to logfile .\DIRUSE.LOG.
/* Uses the top-level directories residing in the specified DIRS
/Q:# Mark directories 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 if specified sizes are exceeded.
(The Alerter service must be running.)
/D Displays only directories that exceed specified sizes.
/O Specifies that subdirectories are not checked for specified size
overflow.
DIRS Specifies a list of the paths to check.
Note: Parameters can be typed in any order. And the '-' symbol can be
used in place of the '/' symbol.
Also, if /Q is specified, then return code is ONE if any directories are
found that
exceed the specified sizes. Otherwise the return code is ZERO.
Example: diruse /s /m /q:1.5 /l /* c:\users
That means that you could issue the command with the correct params, and get a report in which you will find nice subtotals. the trick is /* i think.
i just tested on our userdir and it seemed to work just fine. all you need to do is fetch all the lines with "SUB-TOTAL" in them and grab the dirname and size from them.
with the /q option you could even set a limit, giving it a report with all dirs exceeding this limit.
dunno if it helped, if you need a sample script,pls tell me.
regards,
MvdW