title: How to use systeminfo.exe command lines in a Process?
body: <p>I have this code:</p>
  
  <pre><code>private void SysInfo32()
          {
              Process proc = new Process();
              proc.EnableRaisingEvents = true;
              proc.StartInfo.UseShellExecute = false;
              proc.StartInfo.FileName = "systeminfo.exe";
              proc.StartInfo.CreateNoWindow = true;
              proc.StartInfo.Arguments = "systeminfo.exe&gt;" + "\"" + contentDirectory + "\\systeminfo.txt" + "\"";
              proc.Start();
              proc.WaitForExit();
              proc.Close();
          }
  </code></pre>
  
  <p>The contentDirectory is : C:\Users\bout0_000\AppData\Local\Diagnostic_Tool_Blue_Screen\Diagnostic Tool Blue Screen\SF_28-07-13</p>
  
  <p>And i want that the systeminfo.txt will be inside: SF_28-07-13</p>
  
  <p>But the file is never created in this directory.</p>
  
  <p>I used the Arguments the same as i did with the msinfo32.exe and its working with the Msinfo.exe</p>
  
  <pre><code>private void MsInfo()
          {
              Process proc = new Process();
              proc.EnableRaisingEvents = true;
              proc.StartInfo.UseShellExecute = false;
              proc.StartInfo.FileName = "msinfo32.exe";
              proc.StartInfo.CreateNoWindow = true;
              proc.StartInfo.Arguments = "/nfo " + "\"" + contentDirectory + "\\msinfo.nfo" + "\"";
              proc.Start();
              proc.WaitForExit();
              proc.Close();
          }
  </code></pre>
  
  <p>So i dont get it why its not working with the systeminfo.exe ?</p>
  
  <p>I used the command line ">" as argument took it from this site:</p>
  
  <pre><code>http://www.worldstart.com/generate-a-system-info-text-file/
  </code></pre>