6

Possible Duplicate:
How do I delete a 'locked' file?

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?

Matteo Riva
  • 9,031
  • 3
  • 28
  • 33

3 Answers3

6

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.

Gilles 'SO- stop being evil'
  • 69,786
  • 21
  • 137
  • 178
5

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

Bob
  • 60,938
  • 25
  • 191
  • 216
LawrenceC
  • 73,030
  • 15
  • 129
  • 214
-1

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

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

Aki
  • 519
  • 2
  • 6
  • 10
  • 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