Recursive deleting empty folders.

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
MeTAlMollY
Junior Member
Junior Member
Posts: 18
Joined: 2003-03-13, 14:55 UTC
Location: Netherlands

Recursive deleting empty folders.

Post by *MeTAlMollY » 2003-08-14, 19:16 UTC

Hello forum readers,

I'm looking for an easy way to delete empty folders in a recursive way using total commander. I have searched the forum. But I couldn't find an easy way in doing this...

Maybe you can give me a clue?

I want to select a root directory e.g. c:\Program Files
Then pressing a button or selecting a menu option it should delete all empty sub folders inside the c:\Program Files folder.

Is this possible, for example using cmd_xxxx commands.
(I also hoped the treecopy could do this but unfortunately it's not yet possible).


Regards,
MeTAlMollY

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36544
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2003-08-17, 12:32 UTC

You can only do this with a trick:
- Set the directory with the empty folders on the right side
- Set some other directory on the left side
- Use Commands - Synchronize dirs
- Use asymmetric mode
- Click "Compare"
- Click "synchronize"
- Uncheck all options except for "Right: delete empty dirs"
- Click OK
Author of Total Commander
http://www.ghisler.com

MeTAlMollY
Junior Member
Junior Member
Posts: 18
Joined: 2003-03-13, 14:55 UTC
Location: Netherlands

Post by *MeTAlMollY » 2003-08-23, 14:14 UTC

Mmm, thanks for this answer. It seems to work fine (ofcourse).
But as you described in the first sentence: "You can do this with a tick"...

Do you think there will be an easier method of deleting empty folders?
Maybe a menu item 'delete empty folder(s)' with a new release of Total Commmander 6.x?

Anyway thanks for the answer!

Kind regards,
MeTAlMollY

User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler » 2003-08-27, 22:37 UTC

It's not TC, but I found a free command line tool that will recursively delelet empty directories. You can get it here - http://www.webattack.com/get/rmempty.shtml
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows

User avatar
pdavit
Power Member
Power Member
Posts: 1525
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit » 2003-08-28, 04:17 UTC

"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!

MeTAlMollY
Junior Member
Junior Member
Posts: 18
Joined: 2003-03-13, 14:55 UTC
Location: Netherlands

Post by *MeTAlMollY » 2003-08-30, 10:45 UTC

Thanks for the two programs, I will try them !!

Post Reply