任何人都可以告诉我如何使用 c# 在按钮单击时关闭 .exe 文件。我知道如何使用 c# 在按钮单击时运行 .exe 文件,如下所示:
string str = @"C:\windows\system32\notepad.exe"; process.StartInfo.FileName = str; process.Start();
但是谁能告诉我如何在 c# 中单击按钮时关闭 .exe 应用程序?
c# process
c# ×1
process ×1