views:

1019

answers:

3

I would like to know who is locking a file (win32). I know about WhoLockMe, but I would like a command-line tool which does more or less the same thing.

I also looked at this question, but it seems only applicable for files opened remotely.

+8  A: 

Handle should do the trick.

fhe
Thanks. Exactly what I needed!
JesperE
+4  A: 

handle.exe http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx

THis has helped me sooooo many times....

webclimber
A: 

You don't neeed anything (if you're a programmer...) . Just enumerate the handles and get the pid.

Of course. But I'd prefer if there was a tool I could just download.
JesperE
can you elaborate on this?
aloneguid