我想插入运行到列表框中的所有进程,
以及如何"杀死"进程和启动进程?
for i = 0 to procCount
...
next i
Run Code Online (Sandbox Code Playgroud)
小智 8
列表+杀死:
For Each p As Process In Process.GetProcesses
ListBox1.Items.Add(p.ProcessName.ToString)
If String.compare(p.ProcessName, "iexplore",true) = 0 Then
p.Kill()
End If
Next
Run Code Online (Sandbox Code Playgroud)
使用kill()杀死进程
来打开进程:
Process.Start("pname.exe")
Run Code Online (Sandbox Code Playgroud)