-1

好吧,标题几乎说明了一切。我正在尝试用代码杀死 cmd,请帮忙?非常感激。

4

2 回答 2

0

从“示例”部分taskkill /?

TASKKILL /F /IM cmd.exe /T
于 2013-02-21T10:18:49.213 回答
0
  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        p1 = Process.Start("C:\Windows\System32\cmd.exe")
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        p1.Kill()
    End Sub
于 2013-02-21T07:13:20.897 回答