Display posts I console windows, and capture the same message in another program
<p>I'm trying to capture the information output of a process (Case 1) in another program (Case 2).</p>

<p>My current code is:</p>

<pre><code>ProcessStartInfo si = new ProcessStartInfo();
si.FileName = caminhoExecutavel;
si.UseShellExecute = false;
si.RedirectStandardOutput = true;
si.CreateNoWindow = false;

//executo o processo
processo = System.Diagnostics.Process.Start(si);

// Configurações do processo.
processo.OutputDataReceived += new DataReceivedEventHandler(processo_OutputDataReceived);
processo.EnableRaisingEvents = true;
processo.BeginOutputReadLine();
</code></pre>

<p>I want to show the console messages as it normally would, <strong>and</strong> capture these same messages in another application.  Currently I can only allow the output to be shown normally <strong>or</strong> redirect it and access it in my other application.</p>
