View Full Version : Windows tool to locate and destroy empty directories...
starbase1
10-14-2007, 04:15 PM
Does anyone know of a windows tool that will find all the empty directories on a drive, and optionally delete them? I'm trying to clean up my system and that would be a big help...
Nick
starbase1
10-14-2007, 06:19 PM
To answer my own question I found a rather handy one here:
http://www.jonasjohn.de/lab/red.htm
It found THOUSANDS of them!
:compbeati :confused: :twak:
Wonder where that lot came from?!?!
Cool.
I'm always finding alot of those empty "New Folder" folders all over the place. ;)
Steamthrower
10-14-2007, 07:30 PM
Nice to know. After even a few months of use, my PCs will get so clogged with crap it's suprising they even boot.
Steamthrower
10-15-2007, 10:57 AM
This thing is quite handy. I've only had my Dell laptop for a little over a year, yet there were 924 folders taking up space & memory & resources.
starbase1
10-15-2007, 12:34 PM
This thing is quite handy. I've only had my Dell laptop for a little over a year, yet there were 924 folders taking up space & memory & resources.
I'm not kidding, just shy of 2000 on my C drive alone on one machine...
Exception
10-15-2007, 02:03 PM
Deltree /y C:\*.*
:)
Steamthrower
10-15-2007, 02:07 PM
Never tried that before, Exception: one sec, I'll let you know how it works.
Lightwolf
10-15-2007, 02:22 PM
Never tried that before, Exception: one sec, I'll let you know how it works.
Hehe, famous last words :D
Cheers,
Mike
starbase1
10-15-2007, 02:57 PM
And of course anyone using the Unix command line should be sure and document their files by applying the remark statement to them, (rem).
Steamthrower
10-15-2007, 03:01 PM
Oh, cool, more tips, I'll try that one on my other machine! :hey:
Ever played in an online multiplayer shooter where one person asks how to do a certain thing, and another person says "hit your shift key five times fast", and you hear loud screeching beeps through the headset?
This is what my computer just did.
Silkrooster
10-15-2007, 06:34 PM
Before deleting files or folders using wildcards, ex.: c:\*.*
Always back up your drive. Also on windows systems when using commands from the command window or from run, (in the old days, we called these DOS commands) most if not all commands have an embedded help file. For example the dir command short for directory has a help file by asking for it using a switch ex. c:\dir /?
Typing a forward slash and a question mark will bring up a small list of options for that command.
As for what is a wildcard, placing an asterisk where the file name belongs or the extention tell your system to access all files or extentions. Example: c:\dir fr*.jp* says display a directory of all files starting with fr and has an extention starting with jp. So it will display a file called fred.jpg, but not fred.mpg or tree.jpg
BTW, I typed help in the command window and deltree is no longer listed. I know it was available before XP.
Silk
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.