Thanks.

Moderators: Hacker, petermad, Stefan2, white
Using Total Commander only without any additional plugins, it's awkward but can be done.MrMcGoo wrote:There are free programs that do this, but is there any way to find empty folders and subfolders within TC so they can be deleted?
Code: Select all
MIME-Version: 1.0
Content-Type: application/octet-stream; name="TCDeleteEmptyFolders.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="TCDeleteEmptyFolders.zip"
UEsDBBQAAgAAANFZWkQAAAAAAAAAAAAAAAATAAAARGVsZXRlRW1wdHlGb2xkZXJzL1BLAwQUAAIA
CABmYlpEgU3WbbgCAAD+BQAAHQAAAERlbGV0ZUVtcHR5Rm9sZGVycy9SRUFETUUuVFhUrVTfT9sw
EH6PlP/hACHoxjoBG299CP2BqpV2okHbNCbkJm5izbEj2yEL4o/f2UlKStG2h+XN8d133333nY9H
UhwZiBQlhgIRFehiBWvJY6o0MAEmZbo57+3t9XzP94I4hqMR5RQzaJabqhuvWJIayImg/AjWhYgM
k4giIZSGcBjKLCMCg31v8D8+yyd0FBmnEFMdKbaiGlJZQiULiIiAQtOX1S2hNRMxdhxjlm3F99ou
SmZSENJBup6Y6cOkuYykMIQJJpJN16vCbMJ9r2ScA+Fawoo20HHf0vS96XwZBrNZEE4Xc3s+7cHU
KrxLL1cyUSRrSpxs5tOZDgiS0dj39utJjO0gGpL7rq0cabnp3YyD0fW4H34Na5VcR0A0wimaMVsQ
CR7fipxEPyEc7gL2H1luJfs7VWeQsx5Yj9ho/MtladVq0r8vKxEtcusK/QM0rf2BlDAoyuI+Sotc
MioKrCHWLCkUsSHvhykRCYUlNQbhNEzcdEZMIQSvemALb4H73m4j97PBYdRSv8+JSQ/vdqPuXk39
EunB05tXryacJHpw9vHp4vzpwhI5f00B9ImpdwGdqdrjiuAuHGsEjYybWyTzCgz9ZdBApqRUwOX4
ajp3d+P5qJ4t0WgHtOIOlhtAux0u8XlVwgXab3g9OrgMbg5GQRj43vLbfLj4PJ7DblcWqIwyho7X
/ZjztvM/7nxt9HennfVGzlvr6nu3y+BqvL0AHQhIpNUIdxlnG7dud8pwhga14b73bw9QrUvjyaaU
Ro+kSgr2iPvp7CMVQyvFjHCZdIqgx3OiaCuu71kOeFHDLDswz2Vw8MMNwOJTZ+b1U+D+b3G2WR/Q
LmtDVUlUrE/cw5WRClLyQG2qomtFdepy7ftDhdEg1y+FQxvlGKdhaBR/ewNSweQMytTufFdffBII
rt0D7f0GUEsBAhQAFAACAAAA0VlaRAAAAAAAAAAAAAAAABMAAAAAAAAAAAAQAAAAAAAAAERlbGV0
ZUVtcHR5Rm9sZGVycy9QSwECFAAUAAIACABmYlpEgU3WbbgCAAD+BQAAHQAAAAAAAAABACAAAAAx
AAAARGVsZXRlRW1wdHlGb2xkZXJzL1JFQURNRS5UWFRQSwUGAAAAAAIAAgCMAAAAJAMAAAAA
DeleteEmptyFolders\README.TXT wrote:(Don't create any sub folders in this folder!!!)
Add 'Delete empty folders in right panel' function to Total Commander
=====================================================================
This file describes how you can use Total Commander to find and delete
folders with no files in it. Folders containing folders but no files
will also be deleted.
INSTALLATION
1) In the Total Commander program folder, create a sub folder named
"DeleteEmptyFolders" and put this README.TXT file in it as a reminder.
(Unpack TCDeleteEmptyFolders.zip to the Total Commander program folder)
2) Add the following to the [SyncOptions] section in wincmd.ini
(menu Configuration/Change Settings Files Directly)
[SyncOptions]
DeleteEmptyFolders_L=%commander_path%\DeleteEmptyFolders\
DeleteEmptyFolders_Wcs=|*
DeleteEmptyFolders_Flags=25|63|6
3) Add the following button to your button bar
(select and copy text between BEGIN and END and paste onto your button bar)
========BEGIN========
TOTALCMD#BAR#DATA
SYNCOPEN DeleteEmptyFolders
wcmicons.dll
Delete empty folders in right panel
-1
=========END=========
USAGE
1) In the right panel go to desired folder and click the
'Delete empty folders in right panel' button
2) In the synchronize directories dialog click the Compare button
and then the Synchronize button
3) Click the OK button to delete the empty folders
4) Afterwards, you may have to refresh the contents of the right panel
(press Ctrl+R or F2 while right panel is active)
I wonder if there are many content plugins that actually create threads. TC itself might call content plugins in a background thread if the plugin allows it. DirSizeCalc doesn't create threads BTWEmpytcheck
All the checks are performed in foreground thread, so that highlighting schemes with this plugin displayed the colors immediately when navigating file system.
and it uses the Command-> "Synchrinize Dirs.." functionality which maybe due to this added sub directory in the program folder now has an "empty directories" checkbox (but I seem to remember it, so not sure whether that is really a new addition).white wrote: 2014-02-26, 11:22 UTCUsing Total Commander only without any additional plugins, it's awkward but can be done.MrMcGoo wrote:There are free programs that do this, but is there any way to find empty folders and subfolders within TC so they can be deleted?
Save the following text in a file named TCDeleteEmptyFolders.b64 and then double click the file in Total Commander.
...
I advise you to take a look here. There you will find faster and simpler solutions, in particular, without dialogs.