Opening New Console Application Window
<p>Using C/C++, I am trying, from a Console Application, to open another Console Application in a new Console window, and just let it run. Currently, all my attempts have ended up with the two applications sharing a window, which is not what I want.</p>

<p>I am currently using <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx" rel="nofollow">CreateProcess</a> however I can't work out which arguments I need to set. I've managed to show and hide the output, etc. etc., but it all still shows in the same window. </p>

<p>I've tried a few messy hacks involving <strong>cmd.exe</strong> and <strong>start</strong>, but I haven't managed to get them to work either.</p>

<p>Basically, I want to achieve this: <a href="http://blogs.msdn.com/b/jmstall/archive/2006/09/28/createnowindow.aspx" rel="nofollow">http://blogs.msdn.com/b/jmstall/archive/2006/09/28/createnowindow.aspx</a></p>

<p>equivalent to <code>UseShellExecute</code> (true) and <code>CreateNoWindow</code> (false), but in C++.</p>

<p>Does anybody know how to do this? It seems as though it should be so simple, but I just can't figure it out.</p>

<p>Thank you very much.</p>
