title: How to capture stderr on Windows/DOS?
body: <p>I want to capture the errors from a script into a file instead of to the screen.</p>
  
  <p>In *nix, this is done with stderr redirection, usually</p>
  
  <pre><code>echo "Error" 2&gt; errorfile.log
  </code></pre>
  
  <p>How do I do it in a CMD script under Windows?</p>