In Windows, how do I determine (using C#) what process locked a file?
Third-party tools are helpful, but not what I\'m looking for.
Handle, from Windows Sysinternals. This is a free command-line utility provided by Microsoft.
You could run it, and parse the result.