/cmd__ErrorLevel

{cmd} Simple Windows cli tool to alter the ERRORLEVEL. Can be called by any shell that can invoke batch files.

Primary LanguageBatchfileDo What The F*ck You Want To Public LicenseWTFPL

cmd__ErrorLevel

Simple Windows cli tool to alter the ERRORLEVEL. Can be called by any shell that can invoke batch files.

Usage

Powershell:

.\errorlevel.cmd 11
echo $LASTEXITCODE # prints 11

cmd:

errorlevel 11
echo %ERRORLEVEL%
REM prints 11