title: running dos command line from C#?
body: <p>I am trying to run this command from command-line prompt:</p>
  
  <pre><code>"D:\\fiji\\fiji.exe -macro D:\\fiji\\macros\\FFTBatch.ijm --headless"
  </code></pre>
  
  <p>It works perfect when I type it in a command-line console.</p>
  
  <p>However, when I was trying to make it work from C# application, it failed. I tried following, but seems the command above did not get executed somehow:</p>
  
  <pre><code>string fijiCmdText = "D:\\fiji\\fiji.exe -macro D:\\fiji\\macros\\FFTBatch.ijm --headless";
  System.Diagnostics.Process.Start("cmd.exe", fijiCmdText);
  </code></pre>
  
  <p>Anyone has any idea how to change it to work? Thanks.</p>