Every once in a while I'm told by Windows that I cannot perform a certain action (like deleting a file) because "the file is open in another program". However, it never tells me which program.

Is there a way to figure that out? If not, is there a way I can do a unix-like rm -f on the file? Usually I can just reboot my machine, try the action first thing after startup and then I can do it, but not always, so it'd be handy to know an alternative solution...

link|improve this question
possible duplicate of How do I delete a 'locked' file? – Nifle Oct 26 '11 at 6:37
feedback

2 Answers

up vote 3 down vote accepted

"Unlocker" can come in really handy if you just dont care who has it locked and you just want to be rid of it.

http://www.emptyloop.com/unlocker/

Myself I only put it in the "SendTo" and it works ok, that way it is not another item in the regular context menu.

link|improve this answer
1  
+1 After installing unlocker, just right the file that you are not able to delete. It will tell you who is locking it and gives you the ability to unlock, delete the file or kill the locking process. – Ganesh R. Oct 26 '11 at 6:05
feedback

You can use Process Explorer and search for the file handle (Ctrl-F).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.