Question

Is there a way to get the PID from a process that is blocking a file using C#?

Was it helpful?

Solution

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top