3

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

Ricardo
  • 997
  • 4
  • 13
  • 24

1 Answers1

6

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?

ZombieSheep
  • 29,135
  • 12
  • 65
  • 112