title: How to write the output from diskpart to a file
body: <p>I want to write the output from a <code>diskpart</code> command to a file, i.e., say something like</p>
  
  <pre><code>LIST PARTITION &gt;c:\output.txt
  </code></pre>
  
  <p>How can I do this?</p>