Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2005

Tip: Looking for answers? Try searching our database.

Help :Redirecting Console results on form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
noor - 29 Dec 2005 12:21 GMT
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/>


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.