Open command prompt within form?
Is it possible to have a command window open within a form? I have some shell scripts that I need to execute from my C# app and I don't want an extra window to pop up.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Jan 17, 2008, 10:14 PM EST
Have you tried to launch the script by just using System.Diagnostics.Process.Start?
System.Diagnostics.
Process.Start("c:\\temp\\GeoBase_Data_Models_NRNC1_v01.pdf");John17 reputationPosted Jan 17, 2008, 10:35 PM EST
I've used Process.Start() to execute the program, but it opens it in a new window. What I need is a control or something within my existing form that will display the program.
Example: when I execute my application, left side of form have a textbox to contain a list of computers and a textbox to contain a filename. have a button to execute filecopy. on right side of form display command prompt which will display all output that a normal command prompt window would.
by the same thinking, could maybe have an instance of iexplore.exe display within my form.
John17 reputationPosted Jan 17, 2008, 11:37 PM EST