OK, recycling thread...........
I now have the button open CMD and run a CD command, to put the path back to system332. But im also trying to run a second command after CD to start an ipconfig /all.
Whenever I click the button, CMD pops up and tells me that the system cannot find the file with the path specified. My code is:
Can someone please help me get CMD to open, run the CD for the proper directory, then run IPconfig after the CD executes?
CMDtxt.text = CD C:\windows\system32
I now have the button open CMD and run a CD command, to put the path back to system332. But im also trying to run a second command after CD to start an ipconfig /all.
Whenever I click the button, CMD pops up and tells me that the system cannot find the file with the path specified. My code is:
Code:
Dim ipcmd As String
Private Sub ipbut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ipbut.Click
ipcmd = "ipconfig.exe /all"
Shell("c:\windows\system32\cmd.exe /k " & cmdtxt.Text + ipcmd, AppWinStyle.NormalFocus)
Can someone please help me get CMD to open, run the CD for the proper directory, then run IPconfig after the CD executes?
CMDtxt.text = CD C:\windows\system32
Last edited: