title: Redirecting console output to another application
body: <p>So say I run my program:</p>
  
  <pre><code>Process proc = new Process();
  proc.StartInfo.FileName = Path.GetDirectoryName(Application.ExecutablePath)
                             + @"\Console.exe";
  proc.Start();
  </code></pre>
  
  <p>And then wish to output my console stream to this application, how would I go about doing so?
  So say I have:</p>
  
  <pre><code>Console.WriteLine("HEY!");
  </code></pre>
  
  <p>I want that to show up in program that I ran's console. I know I have to redirect the output using</p>
  
  <pre><code>Console.SetOut(TextWriter);
  </code></pre>
  
  <p>But I have no idea how I would go about making it write to the other program.</p>
  
  <p>I can see how I could do it if I were running my main program from Console.exe using RedirectStandardInput.. but that doesn't really help :P</p>