title: How to launch an external process in C#, using a cmd window
body: <p>I am having trouble executing an external console application using Process.Start</p>
  
  <pre><code>Process p = new Process();
  p.StartInfo.WorkingDirectory = "dump";
  p.StartInfo.FileName = "test.exe";
  p.StartInfo.Arguments = s;
  p.Start();
  </code></pre>
  
  <p>When the argument that p generates executes, the external application crashes, although if I copy the exact same argument in a command line window it runs fine.</p>
  
  <p>So my question instead how would I create a new instance of a command window and then add the command test.exe + s to run?</p>
  
  <p>So effectively I am launching cmd and then adding my arguments on to it</p>