title: Starting a process in the current command window in .NET
body: <p>I have this in a VB.NET console application:</p>
  
  <pre><code>Dim p As ProcessStartInfo
  p = New ProcessStartInfo(Environment.CurrentDirectory &amp; "\bin\javac.exe",ClassName &amp; ".java")
  Dim ps As Process = Process.Start(p)
  </code></pre>
  
  <p>This does run the java compiler on the file, but it does so <em>in a new window</em>.  I want the output from javac to appear in the same console that is running my application.
  How can I do this?  Perhaps there is another method for running commands in the current console?  Or maybe I can supress the second console window from opening and redirect its output to the current console?</p>