title: c# run cmd with argument and close it in finish
body: <pre><code>System.Diagnostics.Process process = new System.Diagnostics.Process();
          System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
          startInfo.FileName = "cmd.exe";
          startInfo.WorkingDirectory = @"C:\";
          startInfo.Arguments = "dir / s / b / o:n / A:D";
          process.StartInfo = startInfo;
          process.Start();
  </code></pre>
  
  <p>I try to run cmd with argument but it not working...</p>