Process return (int), to another program
<p>Good afternoon,</p>

<p>I have a process (console), where the main it will return an integer.</p>

<p>I will start this process from another in this way:</p>

<pre><code>Process processo = new Process();

processo.StartInfo.FileName = caminhoExecutavel;
processo.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
processo.Start();
</code></pre>

<p>How can I test this return (integer) the first process?</p>

<p>explanation:</p>

<p>I have a program (1) that will call an executable (2) as above.</p>

<p>Need to test this program (1) return (int) this executable (2). because the main it returns an integer.</p>

<p>I'm not able to find how / where can I get this return.</p>

<p>NOTE: Even by code within the program (1).</p>
