title: C# call command get 'C/:Program' not recognized as an internal or external command
body: <pre class="lang-cs prettyprint-override"><code>command = @&quot;/C  &quot;&quot;C:/Program Files/MongoDB/Server/4.2/bin/mongodump.exe&quot;&quot;   D:/hkorders  --uri=&quot;&quot;mongodb://XXX:XXX@localhost:30000/XXX?authSource=admin&quot;&quot;  -d hkorders&quot;;
  var cmdsi = new ProcessStartInfo(&quot;cmd.exe&quot;,command);
  cmdsi.RedirectStandardOutput = true;
  cmdsi.RedirectStandardError = true;
  cmdsi.UseShellExecute = false;
             
  var cmd = new Process() { StartInfo = cmdsi };
  cmd.Start();
  cmd.WaitForExit();
  </code></pre>
  <p>i tried <a href="https://stackoverflow.com/questions/60934402/cprogram-not-recognized-as-an-internal-or-external-command">method1</a>,but still not works, i know it cause by the space between program and files ,but i did not know how to resolve it</p>