1. 程式人生 > >關閉特定程序(網上找的,僅自用,非原創)

關閉特定程序(網上找的,僅自用,非原創)

原創 exit class gpo ati exe window stat AD

using System;
using System.Diagnostics;
class close_special_exe
{
static void Main()
{
Process[] myProcess;
myProcess=Process.GetProcessesByName ("Notepad");
foreach(Process instance in myProcess)
{
instance.WaitForExit (3000);
instance.CloseMainWindow ();
}
}
}

關閉特定程序(網上找的,僅自用,非原創)