VS2005(C#)
System.Diagnostics.Process 提供对本地和远程进程的访问并使您能够启动和停止本地系统进程。
1
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcesses();
2
3
foreach (System.Diagnostics.Process myProcess in myProcesses)
4
{
5
if (myProcess.ProcessName.ToUpper() == "IEXPLORE")
6
{
7
myProcess.Kill();
8
}
9
}
10
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcesses();2

3
foreach (System.Diagnostics.Process myProcess in myProcesses)4
{5
if (myProcess.ProcessName.ToUpper() == "IEXPLORE")6
{7
myProcess.Kill();8
}9
}10

diagnostics
KK: [












]
DJ: [












]
KK: [
DJ: [
n.
1. (用作单数)诊断法


浙公网安备 33010602011771号