title: Running / spawning commands vs files in c#
body: <p>I can in C# do the following:</p>
  
  <pre><code>var pSpawn = new Process
       {
           StartInfo = { WorkingDirectory = @"C:\temp", FileName = fileToRun, CreateNoWindow = true }
       };
       pSpawn.Start();
  </code></pre>
  
  <p>and this works fine.... however I am wondering if there is a way to run a command (ie: "dir /b") without having to encapsulate it in a batch file?  </p>