Sometimes it happens that I can't delete a file because it appears to be in use by some program. Of course there is no obvious process using it (it's not that I don't see VLC playing an AVI I want to erase), so how can I find out what's keeping it busy?

link|improve this question

54% accept rate
feedback

3 Answers

up vote 3 down vote accepted

There's a great freeware tool called Unlocker that can solve this exact problem rather easily.

link|improve this answer
No way to do it without installing external programs? – Matteo Riva Sep 25 '10 at 13:48
Process Explorer suggested by @Gilles is interesting too, but accepting this as it more directly solves the specific issue – Matteo Riva Sep 25 '10 at 14:08
feedback

Install Process Explorer. Choose “Find / Handle or DLL” in the menu and enter a substring of the file name.

There's also Handle if you want a command line interface.

link|improve this answer
feedback

How to take ownership of a file or a folder in Windows XP

http://support.microsoft.com/?kbid=308421

link|improve this answer
2  
Taking ownership is not the same as find out what other user/process has the file locked. – ChrisF Sep 25 '10 at 13:53
feedback

Your Answer

 
or
required, but never shown

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