Boost C++ Libraries: Ticket #1663: build.bat cannot set/reset ERRORLEVEL https://svn.boost.org/trac10/ticket/1663 <p> The file build.bat says </p> <blockquote> <p> REM NOTE: The "setlocal &amp; endlocal" construct is used to reset the errorlevel to 0. </p> </blockquote> <p> But this does't work on Windows 2000/XP/Vista. And says aloso </p> <blockquote> <p> REM NOTE: The "set _error_=" construct is used to set the errorlevel to 1 </p> </blockquote> <p> This does't work on Windows Vista. </p> <p> So, my Proposed resolution is </p> <dl class="wiki"><dt>reset the errorlevel to 0</dt><dd> ver&gt;NUL </dd><dt>set the errorlevel to 1</dt><dd> dir NUL&gt;NUL 2&gt;&amp;1 </dd></dl> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1663 Trac 1.4.3 René Rivera Fri, 20 Jun 2008 03:50:04 GMT version, milestone changed https://svn.boost.org/trac10/ticket/1663#comment:1 https://svn.boost.org/trac10/ticket/1663#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.34.1</span> → <span class="trac-field-new">Boost.Jam 3.1.16</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost.Jam 3.1.17</span> </li> </ul> Ticket René Rivera Sun, 23 Nov 2008 03:27:56 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1663#comment:2 https://svn.boost.org/trac10/ticket/1663#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/49884" title="Adjust error un/setting for compatibility with more Windows CMD ...">[49884]</a>) Adjust error un/setting for compatibility with more Windows CMD versions. (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1663" title="#1663: Bugs: build.bat cannot set/reset ERRORLEVEL (closed: fixed)">#1663</a>) </p> Ticket