Tool to find which process has a handle on the file
How to find which process has locked a file or has a hold on the file?
Have you come across a message which said something like this, “Cannot delete or use the file because the file is in use by another process”
I have come across such instances where I could not use the file because it was being used by another process. It can get frustrating when it does not mention which other process is using it. The problem I am facing currently is where I have an application created in Windows Workflow and it is designed to pick up a file from a folder and use it, but randomly for no apparent reason it throws a message which says, the file cannot be accessed because it is in use by another process. It was frustrating to not able to know which other process is using it.
That’s where I came across this Microsoft tool which helps you to find which other process is using your file. You can download the tool here Process Explorer
The tool helps you find the process which has a hold on your file. It displays a list of all the active processes. To find the process which has a hold on your file Open the tool and Click on the Menu item Find à Find Handle or DLL and type in the name of the file you are looking for and you should find the file with the process having a hold on it.
I thought that was very useful. Hope you find it useful too.