title: How to run cmd.exe using c# with multiple arguments?
body: <p>I am using the following code to open the .exe and then I would like to pass another argument to it:</p>
  
  <pre><code>ProcessStartInfo StartInfo = new ProcessStartInfo();
  StartInfo.FileName = "cmd.exe";
  StartInfo.Arguments = @"/k set inetroot=c:\depot&amp;set corextbranch=surfacert_v2_blue_kit&amp;c:\depot\tools\path1st\myenv.cmd";
  Process.Start(StartInfo);`
  </code></pre>
  
  <p>Which opens up the window as below.
  <img src="https://i.stack.imgur.com/hbI4I.png" alt="enter image description here"></p>
  
  <p>Now I also need to pass "sd sync dirs" which gives me some result and would like to capture the result to a variable.<img src="https://i.stack.imgur.com/9m637.png" alt="enter image description here"></p>
  
  <p>To accomplish this I need to pass two agruments in the 
  ProcessStartInfo.Arguments.
  How can I add this second argument in the above code to take care of everything in C# code.</p>