Paul Monson <paulmons at gmail.com> added the comment: I did a quick test and it looks like exit /b %ERRORLEVEL% will propagate the exit code. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue36511> _______________________________________