Reputation: 1023
Is there a way to get the PID from a process that is blocking a file using C#?
Upvotes: 3
Views: 367
Reputation: 29963
I don't know whether it can be done entirely within the framework, but maybe you could call out to SysInternals' Handle.exe to do the heavy lifting here?
Upvotes: 6