Currently, cmd window leaves running even the command is executed. I have the "/c" switch, but it does not terminate cmd after the command completes.
Code:Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click Shell("cmd.exe /c" + TextBox1.Text, AppWinStyle.Hide) End Sub




Reply With Quote
