DelEmpty - lists/erases empty dirs

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Thanks to all very much for the support. :mrgreen:
Version 1.02 is available, hopefully it is going to work now. Thanks to JackFoo for the clue - and Christian probably guessed it right, I forgot one call to FindClose(). If it doesn't work, the code can be downloaded from the same location as the exe and I also added the formatmessage(getlasterror) call, so if it still isn't fixed hopefully I get some more debug info. However, it works here under W2K, so there's hope. :)

Again, thanks to everyone, and separate big thanks to JackFoo (who answered the call :) ), Christian, who was willing to check the code (and probably even guessed the problem right) and to Sven for the SDK. :D

Roman
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Hacker
Good job. It works now properly. Thanks. :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

Tried with Win2K Sp4
1° On Fat partition it seems to be OK
2° On NTFS partition:
a) delempty h: fp >>> don't stop I must push CTRL BREAK to stop it, buckled sowing allways the same dirs list
b) delempty h: del fp >>> error message from windows but all was deleted ...
Regards
Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Vansumsen
Point 2a&b - on WinNT seems to work OK both on FAT16 and NTFS.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Vansumsen,
Does it work when not specifying H: (root) but with some subdir, like H:\testdir\ ?

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

2(Holy)Hacker

You are right...
:D When I specify h:\blabla\ ...... it is perfect
:( The bugs ( a & b ) only appear when I try the whole disk (ROOT)


Thanks
Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Hacker and 2Vansumsen

Anyway if I tried - as in the example - use H: (root) it also worked correctly on WinNT. :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Vansumsen,
OK, thank you, will try to fix that. The problem is that DelEmpty is accidentally trying to go one level above the base path specified, however, there is no level above H: (well, any root).

Hopefully fixed tomorrow.

Thanks
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

OK, version 1.03 is out, should fix the bug when the root dir is given as the base path.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

As a plugin---

Post by *Clo »

2Hacker
:D   Hello Roman !
• Well… Now, what about a del-empty.wtx, to use that wonder as a plugin in the TC search ? For the most "average" users... ?

{ :twisted:  How hellish I'm, am I not? }

:mrgreen:  Friendly regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Oh well, I think I'd rather do a WGX...

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

2Hacker
I'm sorry... Results with Version 1_03 :oops:

Nothing changed when I specify a root... so I tried something else...

Two partition of an USB2 external HardDisk having the same contents... but one in Fat32 the other NTFS...

On the Fat 32 all is OK
On the NTFS nothing changed... allways the error windows and the programs don't stop recommencing the scan and producing an listing with repeat allways the sames empty dirs....

The only difference for those two disk is Fat32/NTFS


Finally I tried on a other PC WIN2K French SP4 two internal harddisk NTFS ... Exactly the same deportment...

Am I alone with this problem? :?:

Regards
Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Can you please either post or send me the output of DelEmpty (possibly ran on a drive with few directories) and the real directory structure and which dirs are empty?

TIA
Roman
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Just found another app called RmEmpty developed three years ago:
http://www.tinyapps.org/blog/

DDL:
http://www.tinyapps.org/downloads/rmemp12.zip
Screenshot:
http://www.tinyapps.org/screenshots/rmempty.png
HP:
http://kickme.to/OTBSoft/ (currently not working)

Seems like the author had exactly the same probs under NT as Hacker, quite funny to compare the Readmes. ;)

App allows deletion of more than one directory at same time, maybe a reason to use it or a reason for Hacker to further extend functionality of DelEmpty?

Whatever, I thought you might be interested

Icfu
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Thanks.
App allows deletion of more than one directory at same time, maybe a reason to use it or a reason for Hacker to further extend functionality of DelEmpty?
Well, could be done, but as there is very little interest in my util I don't think I can be kicked to doing that (let's force the user to run DelEmpty more times...).

Unfortunately, Vansumsen's bug is still haunting me... :(

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply