File is used by another process. How to know which process?

后端 未结 3 1834
小蘑菇
小蘑菇 2020-12-16 23:25

I keep getting that exception in my program. How do I know which process locked it, either by program code or by doing something with windows?

System.IO.IOExce

3条回答
  •  一整个雨季
    2020-12-16 23:49

    Have a look at this: http://www.emptyloop.com/unlocker/

    I use it all the time, tells you which process has locked it and gives you the chance to unlock it fully. Useful especially for when your debugging image manipulation apps and it bombs out without closing the file properly.

    Hope this helps!

    Sean

提交回复
热议问题