Which process is locking a file on Windows ?
List processes locking a file by file path sub-string:
- Install the
handletool from the Sysinternals suite
handle -u [file path sub-string]in a cmd.exe window
-u option includes the user owning the process.
handle -u "some.pdf" AcroRd32.exe pid: 11208 type: File localnet\oliver 244: C:\Users\Public\Documents\some-folder\some.pdf
- Download Sysinternals Process Explorer
- Menu : Find – “Find Handle or DLL …”