title: Can't get output from cmd
body: <p>I'm running this</p>
  
  <pre><code>        string path = string.Format(@"\\{0}\c$\Windows\CCM\Logs", computerName);
  
          Process process = Process.Start(new ProcessStartInfo()
          {
              FileName = "cmd.exe",
              Arguments = string.Format(@"net use {0} &amp;&amp; dir {0}", path),
              UseShellExecute = false,
              RedirectStandardOutput = true,
              RedirectStandardError = true,
              CreateNoWindow = true
          });
  
          string result = process.StandardOutput.ReadToEnd() + " " + process.StandardError.ReadToEnd();
          process.WaitForExit();
  
          Console.WriteLine(result);
  </code></pre>
  
  <p>But nothing is ever written to the console. What am I doing wrong? I've browsed probably every other SO thread regarding this and done a fair amount of Googling but I can't get it to work.</p>