开发者

How to get process ID and deal with it using c#?

开发者 https://www.devze.com 2022-12-19 12:49 出处:网络
If one file is used by other process and you are trying to manipulate with it...it gives an error:- The process cannot access the file

If one file is used by other process and you are trying to manipulate with it...it gives an error:-

The process cannot access the file 'abc.txt' because it is being used by another process.

In C#, How can i come to kn开发者_JS百科ow that 'abc.txt' file is used by the process Name "XYZ.exe" (or any other process)?


I did a quick search and think these posts can be helpful to you:

Similar Question

C# Answer#1

C# Answer #2

0

精彩评论

暂无评论...
验证码 换一张
取 消