title: Why doesn't my stderr redirection end after command finishes? And how do I fix it?
body: <p>In Windows, either in command line or a batch file, the command <code>DIR 2&gt;NUL: 3&gt;&amp;2</code> (you can replace <code>DIR</code> with anything, even if isn't a file or a command) will make all errors from then on missing unless you write <code>2&gt;CON:</code> after every command. Why is CMD even doing this? And how do you get it back to normal without starting a new CMD process? <code>DIR 2&gt;CON: 3&gt;&amp;2</code> will only work for that command alone.</p>
  
  <p>EDIT: This will work with files as well. <code>DIR 2&gt;TEXT.TXT 3&gt;&amp;2</code> Any errors after that will be appended to the file.</p>