Running a CMD command from C#
<p>i am trying to run the following cmd command, that works on the CMD, from a C# console app but nothing happens:</p>

<pre><code>      string strCmdText = "\\office\\Public\\Tools\\myTool\\myTool_V1.0\\myTool.exe -kan tools -kdb Adhoc - ktn Components3 - uri https://coprime.osdinfra.net";
      System.Diagnostics.Process.Start("CMD.exe", strCmdText);
</code></pre>

<p>the cmd window is emmidiatly closed after pressing F5 in VS so i can't see the output of "myTool.exe" - which does in fact print status about its progress on the cmd when run from a cmd window. </p>

<p>Also the desired effect of the program doesn't happen so i know it didn't work.</p>

<p>Need help please</p>