有没有办法从使用C#阻止文件的进程中获取PID?

时间:2021-03-19 09:46:36

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

有没有办法从使用C#阻止文件的进程中获取PID?

1 个解决方案

#1


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?

我不知道它是否可以完全在框架内完成,但也许您可以调用SysInternals的Handle.exe来完成繁重的工作?

#1


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?

我不知道它是否可以完全在框架内完成,但也许您可以调用SysInternals的Handle.exe来完成繁重的工作?