INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Does anyone know of a zero byte folder finder?  (Read 1918 times)

WolfWalker

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 336
Does anyone know of a zero byte folder finder?
« on: March 21, 2008, 01:26:02 pm »

good 0 byte folder finder and delete them
Logged
So much music so little time!

Tmax

  • Regular Member
  • Member
  • *
  • Posts: 2
Re: Does anyone know of a zero byte folder finder?
« Reply #1 on: March 22, 2008, 11:09:30 pm »

Try this. I've used it, and it seems to work pretty well.

http://www.jonasjohn.de/lab/red.htm
Logged
My motto, as I live and learn, is to dig and be dug in return. -- Langston Hughes

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: Does anyone know of a zero byte folder finder?
« Reply #2 on: March 23, 2008, 02:18:26 am »

One thing I don't like about that, is that I can't seem to find a way to tell it to ignore an entire folder that may have empty folders inside of it. So if I have a folder that has 5 empty folders in it, and for whatever reason those are important folders (even if they are empty), I have to tell it to always skip each of those 5 folders, rather than just be able to tell it to ignore the parent folder and all subfolders.
Logged

NickM

  • Citizen of the Universe
  • *****
  • Posts: 630
  • Simplicity isn't always best, but it's easy to fix
Re: Does anyone know of a zero byte folder finder?
« Reply #3 on: March 24, 2008, 12:59:55 am »

DIR /AD/B/S | SORT /R > EMPTIES.BAT
The file EMPTIES.BAT now contains a list of all folders on your hard drive in reverse order. Use Word or another editor to put the filenames in quotes and add the prefix RD (with a space after RD) to every line in the file. In Word, you can do this easily by using Find and Replace to search for ^p (which represents the paragraph mark) and replace it with "^pRD " (quote, p, R, D, space quote), then hand-correct the first and last lines of the file if necessary. Save the modified EMPTIES .BAT file and exit your editor. Then simply launch the batch file. It will attempt the RD (remove directory) command on each folder, but the command will fail for any folder that is not empty.
It runs backwards so the nested sub-directories are removed first.
This will remove all empty folders (not as Doof was requesting above).
Logged

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 896
Re: Does anyone know of a zero byte folder finder?
« Reply #4 on: March 24, 2008, 01:50:43 pm »

I use a program called "EmptyFolderNuker", but I don't have URL handy...

It does have the ability to toggle "Considering folders with only empty subfolders as empty"....

brad
Logged
Pages: [1]   Go Up