title: How to keep Console Window open after execution?
body: <p>It's a little bit complicated problem. I have tried probably everything and still no working. I run WinForm application from I run CMD and next run another app(console application) on cmd. It's working on <code>/c START xyz</code> but when app finished CMD always is closing. I want to pause this window. </p>
  
  <pre><code>ProcessStartInfo processInfo = new ProcessStartInfo {
      FileName = "cmd.exe",
      WorkingDirectory = Path.GetDirectoryName(YourApplicationPath),
      Arguments = "/K START " + cmdparametr,
      RedirectStandardOutput = true,
      RedirectStandardInput = true,
      RedirectStandardError = true,
      CreateNoWindow = false,
      UseShellExecute = false,
      WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal,
  };
  
  Process p = new Process {
      StartInfo = processInfo
  };
  p.Start();
  
  int ExitCode;
  p.WaitForExit();
  
  // *** Read the streams ***
  string output = p.StandardOutput.ReadToEnd();
  string error = p.StandardError.ReadToEnd();
  
  ExitCode = p.ExitCode;
  
  MessageBox.Show("output&gt;&gt;" + (String.IsNullOrEmpty(output) ? "(none)" : output));
  MessageBox.Show("error&gt;&gt;" + (String.IsNullOrEmpty(error) ? "(none)" : error));
  MessageBox.Show("ExitCode: " + ExitCode.ToString(), "ExecuteCommand");
  p.Close();
  </code></pre>
  
  <p><code>ReadStream</code> is working when I add argument: <code>START /b</code> but I think it's not important. <br>
  <code>WaitForExit()</code> doesn't work. </p>
  
  <p>Is it possible to pause application through command maybe like this: 
  <code>/k start xyz.exe &amp; PAUSE</code>? </p>
  
  <hr>
  
  <p>My app is console application!</p>