Kill some processes by .exe file name

后端 未结 6 955
情深已故
情深已故 2020-11-27 02:45

How can I kill some active processes by searching for their .exe filenames in C# .NET or C++?

6条回答
  •  臣服心动
    2020-11-27 03:17

    You can use Process.GetProcesses() to get the currently running processes, then Process.Kill() to kill a process.

提交回复
热议问题