这是我正在使用的代码:
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Process.Start("C:\batchfile.bat")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
我想知道如何让 Button1_Click 杀死“batchfile.bat”?批处理文件正在打开一个 CMD 提示符,如果这对任何人都有帮助的话。