Windows XP: how to tell who is using a file

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

Posted 2010-09-25T13:30:24.403

Reputation: 8 341

Question was closed 2012-06-11T19:32:15.383

Answers

5

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

LawrenceC

Posted 2010-09-25T13:30:24.403

Reputation: 63 487

No way to do it without installing external programs? – Matteo Riva – 2010-09-25T13:48:20.343

Process Explorer suggested by @Gilles is interesting too, but accepting this as it more directly solves the specific issue – Matteo Riva – 2010-09-25T14:08:22.787

You can use LiberKey (www.liberkey.com) to have portable solutions like that without the need of installing them on current system. – kokbira – 2012-06-11T12:48:04.970

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'

Posted 2010-09-25T13:30:24.403

Reputation: 58 319

-1

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

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

Aki

Posted 2010-09-25T13:30:24.403

Reputation: 519

2Taking ownership is not the same as find out what other user/process has the file locked. – ChrisF – 2010-09-25T13:53:29.843