title: C# pass path in argument
body: <p>I'm starting cmd as a process in C# and I want to pass a file path in the argument. How to do it?</p>
  
  <pre><code>Process CommandStart = new Process();
  CommandStart.StartInfo.UseShellExecute = true;
  CommandStart.StartInfo.RedirectStandardOutput = false;
  CommandStart.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
  CommandStart.StartInfo.FileName = "cmd";
  CommandStart.StartInfo.Arguments = "(here i want to put a file path to a executable) -arg bla -anotherArg blabla &lt; (and here I want to put another file path)";
  CommandStart.Start();
  CommandStart.WaitForExit();
  CommandStart.Close();
  </code></pre>
  
  <p>EDIT:</p>
  
  <pre><code>        Process MySQLDump = new Process();
          MySQLDump.StartInfo.UseShellExecute = true;
          MySQLDump.StartInfo.RedirectStandardOutput = false;
          MySQLDump.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
          MySQLDump.StartInfo.FileName = "cmd";
          MySQLDump.StartInfo.Arguments = "/c \"\"" + MySQLDumpExecutablePath + "\" -u " + SQLActions.MySQLUser + " -p" + SQLActions.MySQLPassword + " -h " + SQLActions.MySQLServer + " --port=" + SQLActions.MySQLPort + " " + SQLActions.MySQLDatabase + " \" &gt; " + SQLActions.MySQLDatabase + "_date_" + date + ".sql";
          MySQLDump.Start();
          MySQLDump.WaitForExit();
          MySQLDump.Close();
  </code></pre>