title: How to easily run shell commands using c#?
body: <p>how do i use c# to run command prompt commands?
  Lets say i want to run these commands in a sequence:</p>
  
  <pre><code>cd F:/File/File2/...FileX/
  ipconfig
  ping google.com
  </code></pre>
  
  <p>or something like that...Can someone make this method: </p>
  
  <pre><code>void runCommands(String[] commands) 
  {
      //method guts...
  }
  </code></pre>
  
  <p>such that your input is a series of string commands (i.e ["ipconfig","ping 192.168.192.168","ping google.com","nslookup facebook.com") that should be executed on a single command prompt in the specific sequence in which they are put in the array. Thanks.</p>