List of processes which are holding a given file. How to get it ?

  • Thread starter Thread starter pamela fluente
  • Start date Start date
P

pamela fluente

Sometimes when we want to delete or rename a file we get the message
that the file is being used by some application and the access to it
is hence denied.


Given a file, how can I get the List of the processes which are
causing this kind of message ?

Can anyone provide a function to retrieve such a list ?


-P
 
pamela fluente said:
Sometimes when we want to delete or rename a file we get the
message that the file is being used by some application and the
access to it is hence denied.


Given a file, how can I get the List of the processes which are
causing this kind of message ?

Can anyone provide a function to retrieve such a list ?


I'm afraid, I don't have a programmatic way. But maybe you are interested in
the very helpful "Handle" tool:
http://www.microsoft.com/technet/sysinternals/default.mspx
(under "process utilities")


Armin
 
Back
Top