Deleting locked files

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
Mawg
Junior Member
Junior Member
Posts: 4
Joined: 2013-12-07, 03:43 UTC

Deleting locked files

Post by *Mawg » 2019-05-31, 17:20 UTC

I bought Total Commander back when it was still called Windows Commander, and have been extremely happy ever since - it is my only interface with Windows - no desktop, no explore, just TC.

However, I can't use it work, so tried Double Commander. When I tried to delete a file which was open in an editor, it offered me an "unlock" option, which sounds like a great feature for TC.

In fact, you could combine it with LockHunter (https://lockhunter.com/) which tells me which application is locking a file, and let's me choose to unlock it, delete it, or delete it at the next reboot.

Just a suggestion. Keep up the great work !

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

Re: Deleting locked files

Post by *ghisler(Author) » 2019-06-03, 13:18 UTC

I will consider it, although I find it a bit risky to give that option to the average user. Some programs like Word may lose data when you do this with open documents. Personally I'm using LockHunter via context menu.
Author of Total Commander
http://www.ghisler.com

User avatar
Dalai
Power Member
Power Member
Posts: 6589
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Deleting locked files

Post by *Dalai » 2019-06-03, 20:07 UTC

I doubt that it's even possible with minimal effort. Both Unlocker and LockHunter use a driver to get the required information about the file, using UnlockerDriver5.sys and USRFindHandle32.sys respectively. Furthermore, Unlocker requires the SeDebugPrivilege privilege which, by default, only administrators have - probably the same with LockHunter.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

User avatar
Usher
Senior Member
Senior Member
Posts: 402
Joined: 2011-03-11, 10:11 UTC

Re: Deleting locked files

Post by *Usher » 2019-06-03, 20:53 UTC

Dalai wrote:
2019-06-03, 20:07 UTC
I doubt that it's even possible with minimal effort. Both Unlocker and LockHunter use a driver to get the required information about the file, using UnlockerDriver5.sys and USRFindHandle32.sys respectively.
Nothing new here. Some existing plugins install their own drivers…
Dalai wrote:
2019-06-03, 20:07 UTC
Furthermore, Unlocker requires the SeDebugPrivilege privilege which, by default, only administrators have - probably the same with LockHunter.
And nothing new here as well. Some TC features are available only when running TC as Administrator. It could be another one…
Regards from Poland
Andrzej P. Wozniak

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

Re: Deleting locked files

Post by *ghisler(Author) » 2019-06-04, 16:14 UTC

Yes, it would have to be handled via tcmadmin.exe with admin rights.
Author of Total Commander
http://www.ghisler.com

Post Reply