title: How to print >null 2>&1 to file
body: <p>I'm trying to execute:</p>
  
  <pre><code>echo reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v DisableOSUpgrade /t REG_DWORD /d 1 /f &gt;nul 2&gt;&amp;1 &gt;%path%
  </code></pre>
  
  <p>In output file i get all execpt <code>&gt;nul 2&gt;&amp;1</code>.</p>
  
  <p>How can I escape > carracter? I tryed with ^ or \ but nothing works. If I quote whole echo without >%path% I'll get all in the output but and quotes too.</p>