title: Defining a working directory for executing a program (C#)
body: <p>I am currently trying to get an executable to be launched from a specific folder.</p>
  
  <p>The code I have below crashes the application oddly enough:</p>
  
  <pre><code>Process p = new Process();
  p.StartInfo.WorkingDirectory = "dump";
  p.StartInfo.FileName = s;
  p.Start();
  </code></pre>
  
  <p>I debugged it, and it was saying it can't find the file to start, but the file / folder defintly exists, is my syntax bad?</p>
  
  <p>The code below works, but a working directroy is not defined, so it can't find the executable</p>
  
  <pre><code>Process.Start(@"dump\", s);
  </code></pre>