Everyone
Stop trying to reinvent the frickin wheel and use tools available to you.
treesize professional, cheap, and does everything you ask for and more
including pretty graphs to show mgmt types.
our job is to use all tools available, so stop wasting time trying to figure
out how to write a batch file or program that is already out there, saves
you time, unless you are trying to impress your boss.
- rg
"Kendal Emery" <> wrote in message
news:...
dir /l
it lists the directory in long format, which also gives the size of any
file.
Also if you do a dir /? it will tell you all the options for the dir
command, including one to sort the listing by size. Hope that helps.
--
Kendal R. Emery, MCSE, Network+, A+, MCNGP #19
Systems Administrator
Coordinated Home Care
remove me to email to me
"pheonix1t" <> wrote in message
news:sm08b.116$.. .
> hello,
> How can I tell what are the largest files on a disk or partition on
> windows 2000 server? (even 2003). On unix/linux, you can use the du
> (disk usage) command and then sort it by size, even output it to a file
> if you want. I would like something scriptable - I have lots of win2k
> servers that have mystery files on them. No documentation, so I have to
> start from scratch. I intend to write a script that will determine the
> file size (per disk) for each server and output the results (sorted by
> size) to a file. Later on, I can put those results in a spread sheet
> for easier analysis.
> It's not that hard to do this on unix/linux....I've looked on the help
> files and all over win2k reference books, but I can't find a command
> line tool that does this. I can't sit at each server with windows
> explorer poking around each folder - that's is just NOT acceptable.
>
>
> Thanks,
> Oskar
>
>