[FYI] Eliminating the delay when deleting in-use files/dirs

English support forum

Moderators: Hacker, petermad, Stefan2, white

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

Post by *ghisler(Author) »

Hey, here I am (finally)!

OK, it took a bit longer to analyze the problem in a debugger. I found out that TC indeed calls SHFileOperation twice when encountering a delete error, because the sharing violation isn't correctly detected. I will correct this in TC 7, maybe even in a TC 6.55. Sorry to those who had problems with it! I never had this problem because there is no such 5 (or 10) second delay on Windows 2000.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
These are really good news. :-)
I will correct this in TC 7, maybe even in a TC 6.55.
Please no 6.55 :shock:
I never had this problem because there is no such 5 (or 10) second delay on Windows 2000.
Oh no not just another operating system versions dependent behavior. I can confirm that it really doesn't seem to happen on Windows 2000 but on XP
Thank you Bill :-(
User avatar
Sticky
Junior Member
Junior Member
Posts: 76
Joined: 2004-03-11, 23:29 UTC
Location: Denver, CO, USA

Post by *Sticky »

ghisler(Author) wrote:I never had this problem because there is no such 5 (or 10) second delay on Windows 2000.
Or on XP, if you have no recycle bin. :-D It took me nearly two pages of this thread to figure out what it was about. :oops:
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

icfu wrote:I have successfully patched the shell32.dll on my system and enjoy the following delays for deleting in-use directories AND files now:

Explorer: 0 seconds!
TC: 0 seconds! (with both Explorer and TC deletion method)

3. Search for the hex string 8bff558bec565733ffeb2183ff05, you will find it twice! In each occurence replace the last 05 with 00.
Even now found sime time to play with it, but couldn find those string in the shell32.dll.

WinXP SP1.

Any ideas why there is not such string in my shell??
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2solid
Locate shell32.dll in TC. Press F3. In Lister, press 3, then F7. Paste this into the "Find what" box:
8bff558bec565733ffeb2183ff05
Click on 'Search hex string'.
Press enter.
Did you find it?
I switched to Linux, bye and thanks for all the fish!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

I have tested under SP2 only and have chosen the string to be as long as possible to prevent collisions!

Use this string instead, it's existent in shell32.dll from XP Gold and also SP1:
565733ffeb2183ff05

Icfu
This account is for sale
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

2SanskritFritz

No,
8bff558bec565733ffeb2183ff05
Not found.

2Icfu
565733ffeb2183ff05

This one is found. I'll play with this one later, and let you know the result.

Thanks.
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

Found 565733ffeb2183ff05, replaced 05 with 00.

Works like a charm. No delays.

Thanks to all.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

I have created a patcher for shell32.dll and need some brave testers. ;)
http://icfu.totalcmd.net/Tools/Deliminator.zip

Please give me some feedback if it works as expected, thanks!

Icfu
This account is for sale
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

2icfu

Unfortunately, i cannot patch it because the file is in use. I patched the one kept in dllcache, but couldn't replace the one in system32. I guess the windowd only allows to edit it.
Any idea how to unlock it and replace it?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Plesae redownload the file. It looks like you have catched one without attached Deliminator.txt which contains detailed instructions. Thanks.

Icfu
This account is for sale
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

2icfu
Right.

I got it this time, and with instructions works great. Tested both under xp with SP 1 and 2.

Thanks for the tool.
cubic
Junior Member
Junior Member
Posts: 82
Joined: 2007-07-18, 12:21 UTC

Post by *cubic »

Hey.
What happens with that 5 seconds delay.
It was not fixed in TC 7...

:(
Post Reply