Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 278 Bytes

File metadata and controls

16 lines (14 loc) · 278 Bytes

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