hi there guys (+ girls)
i would like to create a small program in vb that can send a string to the command line. for example i have a text box and a button, the user enters the desired command in the text box then they click the button. the string in the text box then gets out put to a new cmd window.
for example
they enter into the text box "ping www.google.co.uk"
once i understand how this can be done i could use my program to create more sophisticated commands.
i dont mind if i even have to ouput to the Start-Run dialog e.g.
cheers in advance guys
P.s. i do not expect you to simply tell me the code, but pointing me in the right direction where i can learn is prefered, cheers!!
just so you guys known i aint being lazy, i have tried this
but it doesnt work
gives the error:
cheers again
i would like to create a small program in vb that can send a string to the command line. for example i have a text box and a button, the user enters the desired command in the text box then they click the button. the string in the text box then gets out put to a new cmd window.
for example
they enter into the text box "ping www.google.co.uk"
once i understand how this can be done i could use my program to create more sophisticated commands.
i dont mind if i even have to ouput to the Start-Run dialog e.g.
Code:
cmd /C "ping www.google.co.uk"
P.s. i do not expect you to simply tell me the code, but pointing me in the right direction where i can learn is prefered, cheers!!
just so you guys known i aint being lazy, i have tried this
Code:
System.Diagnostics.Process.Start("cmd /C ping www.google.com")
gives the error:
Code:
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
Comment