I'm looking for a way to recursively list all files on a Windows XP C: drive and sort them by size, similar to what you'd do with "ls -R" in Unix.
Is there any way to do this?
If you like UNIX, you might want to try Cygwin, a linux-like environment for Windows. You can use that "ls -R" and run many other linux comands on top of your windows installation. It's free, and I like it very much.
Hi,
Another excellent shareware tool is Total Commander ( http://www.ghisler.com/ ). It has a "leaf view" (all files from all subdirectories of a directory, or the whole disk if you are pleased). In the "leaf view" you can sort all these files by size, date, name, extension, etc. You also can search files in e.g., all local disks, by some criteria (string or regex in the names, age, size, string or regex in the contents), then feed the found files to the "listbox" and perform an operation on all them irrespective of location.
And finally, there is a couple of plugins for the TC, which can put all the information about found (or just selected) files into files with different formats - one with a lot of information from the file system - size, creation date, permissions - for cataloging purposes, another one - just with full paths, for inclusion into scripts/batch files.
Though I use some "ls -lRtr " or some "find . -size +100000c", in 99% of searches (that's because of the % of time I spend in linux), I really miss sometimes the Total Commander
BR,
Petko
The tools mentioned here work fine. If you are looking to create some free disk space by removing some large files from the C: drive just make sure you do not remove any system files. It's a good idea to back your system up before you do any disk cleanup. Microsoft has a link here where you can add a print feature to do something similar. You just right click a folder and select print directory. LINK.
We modified it a bit to do sub folders by using this
@echo off dir %1 /-p /s/o:gn > "%temp%\Listing" start /w notepad "%temp%\Listing" del "%temp%\Listing" exit
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 5  Replies
dir %1 /-p /s/o:gn > "%temp%\Listing"
start /w notepad "%temp%\Listing"
del "%temp%\Listing"
exit