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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




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

.