title: Running multiline command of *.cmd file from C# Code
body: <p>I have a file in E drive E:\1\2\Abc.cmd and following line written in this file</p>
  
  <pre><code>@:again
  @..\xyz.exe  param1 param2
  @goto again
  </code></pre>
  
  <p>xyz.exe path is E:\1\xyz.exe</p>
  
  <p>If I double click on abc.cmd then it is working fine but it is throwing exception when running form C# code. Saying  <code>“..\xyz.exe is not recognized as internal or external commad”</code>.</p>
  
  <p>I have written following code</p>
  
  <pre><code>System.Diagnostics.Process process = new System.Diagnostics.Process();
  System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
  startInfo.FileName = @"E:\1\2\Abc.cmd";
  process.StartInfo = startInfo;
  process.Start();
  </code></pre>