VS2005(C#)
System.Diagnostics.Process 提供对本地和远程进程的访问并使您能够启动和停止本地系统进程。

 1System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcesses();
 2
 3foreach (System.Diagnostics.Process myProcess in myProcesses)
 4{
 5    if (myProcess.ProcessName.ToUpper() == "IEXPLORE")
 6    {
 7        myProcess.Kill();
 8    }

 9}

10

 

diagnostics
     KK: []
     DJ: []
     n.
     1. (用作单数)诊断法
posted on 2008-12-28 03:49  阿C's  阅读(346)  评论(0)    收藏  举报