471,306 Members | 1,249 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Help : Redirecting Console results on forms

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",strCmdL ine);

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
Dec 29 '05 #1
1 1424

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.