Identify process using a file
You can use handle.exe from Sysinternals.
Something like:
> handle /accepteula C:\path\to\directory...program.exe pid: 1234 type: File 2E4: C:\path\to\directory...
Thanks to https://stackoverflow.com/a/599268/367916 .
You could use Process Explorer from Microsoft
- Download & unpack & run Process Explorer
- Click Find menu and then click Find Handle or DLL... or press CTRL + F
- Copy and paste path to locked folder of file
- Click Search, you can kill process from main Process Explorer window
If you can limit yourself to new enough versions of Windows, the Restart Manager can tell you which process has a particular file open.