How to invoke cmd.exe through a winform and get the output on the the GUI
from a winform gui control a button or a event should run a command on the cmd.exe in the backend and how to capture the output of it in a string and desplay in a textbox
similarly if i have to issue/get multiple command and its correspondig output in hashtable,
eg, cmd1 its output
cmd2 output
cmd3 output
arif sharifPosted Apr 27, 2007, 12:55 AM
It is in vb.net
u can write in form load or any event
Dim p As Process = New Process() p.StartInfo = New ProcessStartInfo("cmd.exe") p.StartInfo.UseShellExecute = True p.Start()
Simon FreedomPosted Apr 13, 2007, 8:53 AM