title: Multiple CMD commands Managed c++ (or c#)
body: <p>Hey im just wondering would this work for running multiple CMD commands? I have not tested this yet. </p>
  
  <pre><code>//multiple commands
  System::Diagnostics::Process ^process = gcnew System::Diagnostics::Process();
  System::Diagnostics::ProcessStartInfo ^startInfo = gcnew System::Diagnostics::ProcessStartInfo();
  //startInfo-&gt;WindowStyle = System::Diagnostics::ProcessWindowStyle::Hidden;
  startInfo-&gt;FileName = "cmd.exe";
  startInfo-&gt;Arguments = "/C powercfg -attributes SUB_PROCESSOR 12a0ab44-fe28-4fa9-b3bd-4b64f44960a6 -ATTRIB_HIDE";
  startInfo-&gt;Arguments = "/C powercfg -attributes SUB_PROCESSOR 40fbefc7-2e9d-4d25-a185-0cfd8574bac6 -ATTRIB_HIDE";
  process-&gt;StartInfo = startInfo;
  process-&gt;Start();
  </code></pre>
  
  <p>Or does <code>startInfo</code> only work with one argument at a time? If so how would I execute multiple commands without making a <code>.bat</code> file and executing that.</p>