V
VanguardLH
W said:I have a file folder I cannot delete because some process is holding it
open. After reviewing open applications and processes in Task Manager, I
cannot locate this process. Is there any application that would let me
point to any file object and then tell me which processes currently have
open locks on the file?
Unlocker
http://www.emptyloop.com/unlocker/
Will tell you what process has the lock WHEN you attempt to delete or
rename the file/folder. The folder would be locked (from deletion)
because a file under it has a file handle still assigned to it from an
active process - and that process can be explorer.exe itself (used for
both the Windows Explorer app and also manages the Windows desktop).
Because it could be explorer.exe that has a lock on the file, you could
unlock the file to delete it by doing the following:
- Load Task Manager.
- Kill all instances of explorer.exe process.
- Your Windows desktop disappears (because explorer.exe is gone).
- Use File -> New Task menu in Task Manager to run "cmd.exe".
- Use the command console to delete the file(s) under the folder and
then delete the folder, or try "del /s <folder>".
- Use File -> New Task menu in Task Manager to run "explorer.exe".
- Desktop reappears.
You're unloading the explorer.exe to delete the file on which this
process had a lock.
On a more general level, I cannot believe that no one has written a system
gadget that will just list all open file resources on your computer and
which processes use those. It would go a long ways towards finding
software you don't want running to see which resources are currently in use.
Nirsoft's OpenedFilesView
http://nirsoft.net/utils/opened_files_view.html