title: Executing a command line from a Windows application
body: <p>I need to execute a command line from a .NET windows application.</p>
  
  <p>I tried with this code, but I got an error:</p>
  
  <blockquote>
    <p>'C:\Documents' is not recognized as an
    internal or external command, operable
    program or batch file.</p>
  </blockquote>
  
  <pre><code>var command ="\"C:\\Documents and Settings\\Administrator\\My Documents\\test.exe\" \"D:\\abc.pdf\" \"C:\\Documents and Settings\\Administrator\\My Documents\\def.pdf\"";
  
  var processInfo = new ProcessStartInfo("cmd","/c " + command)
  {
      UseShellExecute = false,
      RedirectStandardError = true,
      CreateNoWindow = true
  };
  var p = Process.Start(processInfo);
  </code></pre>