When you try to delete/rename/move a file that's in use by an other application you currently get the message:
"Access denied on file ...."
It would be nice if TC7 could tell which application has the file in use so you know what to do.
The freeware tool unlocker can already do this, but adding some of it's functionality in TC itself would be great.
See this topic for more info:
http://ghisler.ch/board/viewtopic.php?p=111902[/url]
access denied on file -> in use by program ...
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately it's not documented how to get this information, sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
ForceDel is open source.
Generally: it browses all handles system-wide looking for these pointing at the file to unlock, then for each handle it starts a remote thread in the the handle owner. This thread simply closes the handle
ADDED: Forgot to mention, it needs Windows NT
Generally: it browses all handles system-wide looking for these pointing at the file to unlock, then for each handle it starts a remote thread in the the handle owner. This thread simply closes the handle

ADDED: Forgot to mention, it needs Windows NT

Last edited by m^2 on 2007-01-24, 19:17 UTC, edited 1 time in total.
Christian, you can find some code here:
http://www.codeguru.com/Cpp/W-P/files/fileio/article.php/c1287/
http://www.codeguru.com/Cpp/W-P/files/fileio/article.php/c1287/