Public Sub killsprocess1()
Dim sProcesses() As System.Diagnostics.Process
Dim sprocess As System.Diagnostics.Process
sProcesses = System.Diagnostics.Process.GetProcesses
For Each sprocess In sProcesses
If sprocess.ProcessName = "你的工程名称" Then
sprocess.Kill()
End If
Next
End Sub