Protected Sub btnTrainingRoom_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnTrainingRoom.Click
' Define new process
Dim procTrainingRoom As System.Diagnostics.Process
' Start the filename you have specified as this new process
procTrainingRoom = System.Diagnostics.Process.Start("c:\temp\trainingroom.cmd")
' Wait for the batch file to finish
procTrainingRoom.WaitForExit(1000)
End Sub
|