title: Controlling cmd.exe from Winforms
body: <p>Question: I want to control cmd.exe from winforms.</p>
  
  <p>I DO NOT mean every command in a single process, with startupinfo, and then stop.</p>
  
  <p>I mean for example start the (My) SQL or GDB command prompt, send command, receive answer, send next command, receive next answer, stop SQL command prompt
  <br />
  exit process.</p>
  
  <p>Basically I want to write a GUI on top of any console application.</p>
  
  <p>I want to have the output from cmd.exe redirected to a textfield, and the input coming from another textfield (on press enter/OK button).</p>
  
  <p>I don't find any samples for this.
  Is there a way?</p>