HOw to find files taking most of disk space

P

Prem Mehrotra

I am on Windowns 2003 but 2000 command should work on 2003
as well.

Is there a command which will show me disk usgae sorted by disk space so I
can find which files are utilizing most of the space. I do not want to buy
any third party tools, looking for a command or something from sysinternals
which can be run to get this information.

I am a UNIX guy learning Windows.

Thanks a lot.
 
P

Pegasus \(MVP\)

Prem Mehrotra said:
I am on Windowns 2003 but 2000 command should work on 2003
as well.

Is there a command which will show me disk usgae sorted by disk space so I
can find which files are utilizing most of the space. I do not want to buy
any third party tools, looking for a command or something from
sysinternals
which can be run to get this information.

I am a UNIX guy learning Windows.

Thanks a lot.

I suspect you're not so much interested in locating ***files*** that consume
a lot of disk space but in ***folders***. If so then one of these tools
might help you:
DriveUse:
http://members.ozemail.com.au/~nulifetv/freezip/freeware/index.html
Bullet Proof Folder sizes: http://www.foldersizes.com/
 
B

b.jeswine

In
Prem Mehrotra said:
Is there a command which will show me disk usgae sorted by disk space
so I can find which files are utilizing most of the space. I do not
want to buy any third party tools, looking for a command or something
from sysinternals which can be run to get this information.

I am a UNIX guy learning Windows.

If you already know Unix then you're in for a lot of frustration and
disappointment with M$ Windows.

"disk usage" != "sum(${file,dir}_size)", but

dir | sort /+20 /R | more

will (somewhat) list things largest to smallest in the current directory.
Additional arguments can be provided to the dir command to include
subdirectories "/S" etc., and you can redirect the output to a file ">
filename" instead of piping to the pager "more" if you like.

Alternatively, if you can use the GUI, just open the explorer and search for
all files/dirs by leaving both the "Search for ..." and "Containing ..."
fields blank, then just click on the "Size" column header to sort in the
desired order.

Your best bet is to "share" the M$ directory of interest, "mount" it using
your Unix utility, and process the information on that platform instead
using the native sed, awk, sort etc. utilities that give Unix the power that
it has. Or install http://www.cygwin.com/ and get some real work done
without leaving the M$ machine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top