Hi,
I'm creating an interface for a network device basically its a GUI for
cofiguring the devices. Configration Commands are working fine on command
prompt I just want to make there GUI so my client should not go to that
BLACK screen to configure those devices.
I m useing this code
//Declare and instantiate a new process component.
System.Diagnostics.Process process1;
process1= new System.Diagnostics.Process();
//Do not receive an event when the process exits.
process1.EnableRaisingEvents = false;
//The "/C" Tells Windows to Run The Command then Terminate
string strCmdLine;
strCmdLine = "/C regenresx "+textBox1.Text + " " +textBox2.Text;
System.Diagnostics.Process.Start("CMD.exe",strCmdLine);
process1.Close();
This code is running fine but it shows result in that Black screen I WANT
TO REDIRECT THE RESULT OF COMMAND IN MY GUI. kindly help me out.
thanks in advance.
regards
Noorali
Herfried K. Wagner [MVP] - 29 Dec 2005 12:29 GMT
"noor" <noorali@sctbpo.com> schrieb:
> This code is running fine but it shows result in that Black screen I WANT
> TO REDIRECT THE RESULT OF COMMAND IN MY GUI. kindly help me out.
<URL:http://www.palmbytes.de/content/dotnet/console.htm>
<URL:http://dotnet.mvps.org/dotnet/samples/misc/#RedirectConsole>

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>