Other Deletion Tools
The custom process described in #1, above, is sometimes needed because many of the free and commercial file-deletion tools shy away from working in the root directory, where a mis-deletion might whack a whole chunk of the hard drive's contents.
But for directories below the root, many tools will work:
For example, the simple, free program called "Sweep" and found at
http://www.csc.calpoly.edu/~bfriesen/software/console.shtml will recursively
perform the same command on all directories below the current one. Thus this
simple three-line batch file would delete all tmp folders on the hard drive in
any location below the root:
c:
cd \
sweep RD /q *.tmp
And there are many other tools to do the same, or similar, things. A collection of old DOS utilities at http://ftp.at.gnucash.org/pc/dos/msdos/dosutils/ contains "tsbat82.zip," which in turn contains a free batchfile "sweep" tool you can modify as you wish. And http://dirsweeper.toolazy.me.uk/ has a native Windows tool called "DIRsweeper," also free; but which requires that the beefy .NET framework be installed in all the PCs that will run DIRsweeper.
Similar functions can be found inside other tools, as well. For example, jv16 Powertools, Easycleaner, and many other third-party tools have built-in facilities to find and delete tmp and other temporary files. ( http://www.google.com/search?q=delete+temporary+files )
So, you see you have many options--- custom, free and commercial--- for file deletions. No matter what you're trying to delete, there's almost surely a tool for the job. <g>
