I love to take a tomcat to a dog show!
In DOS and even in win-XP there is a little known command that MS has tried to forget that they ever wrote.
It's "Deltree.exe" . It's a combination of the two words Delete and TREE, because that's exactly what it can do..."delete an entire tree structure".
It will not run in Vista, Win-7 or Win-8.
Add the
/y switch and Deltree could delete an entire hard drive and never ask the dumb question "Are you Sure?".
My secretary actually did that to me once....she was trying to erase some floppy disks and she forgot to put in the drive letter "A:". Deltree erased my hard drive, by default.
For instance:
deltree /y C:\*.* will delete an entire C: drive.
deltree /y "C:\Windows\temp\*.*" will delete all the files and any sub-folders in the Windows\temp folder.
deltree /y "C:\xyz.txt" would just delete the one file "xyz.txt" from the root directory of C:
So it's either as general or specific as you make it with your syntax.
I use it in my XPCleanup.bat program which cleans up all the junk in my Windows XP, C: drive, which I keep in FAT-32 format.
I run that batch file from my desktop, from my Startup folder and from my Ghost boot disk.
Cheers Mates!
The Shadow