title: Run commandline from c# with parameters?
body: <p>It's possible to run commandline in c# by using something like this : </p>
  
  <pre><code>process = new Process();
  process.StartInfo.FileName = command;
  process.Start();
  </code></pre>
  
  <p>The problem is if the command string contains parameters, for example:</p>
  
  <pre><code>C:\My Dir\MyFile.exe MyParam1 MyParam2
  </code></pre>
  
  <p>This will not work and I don't see how to extract the parameters from this string and set it on the <code>process.Arguments</code> property? The path and filename could be something else, the file does not have to end with <code>exe</code>.</p>
  
  <p>How can I solve this?</p>