https://github.com/aetonsi/cmd__errorlevel
{cmd} Simple Windows cli tool to alter the ERRORLEVEL. Can be called by any shell that can invoke batch files.
https://github.com/aetonsi/cmd__errorlevel
batch cli errorlevel windows
Last synced: 20 days ago
JSON representation
{cmd} Simple Windows cli tool to alter the ERRORLEVEL. Can be called by any shell that can invoke batch files.
- Host: GitHub
- URL: https://github.com/aetonsi/cmd__errorlevel
- Owner: aetonsi
- License: wtfpl
- Created: 2022-08-29T19:58:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T11:18:15.000Z (over 3 years ago)
- Last Synced: 2026-01-20T21:54:55.540Z (5 months ago)
- Topics: batch, cli, errorlevel, windows
- Language: Batchfile
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cmd__ErrorLevel
Simple Windows cli tool to alter the ERRORLEVEL. Can be called by any shell that can invoke batch files.
# Usage
Powershell:
```powershell
.\errorlevel.cmd 11
echo $LASTEXITCODE # prints 11
```
cmd:
```batch
errorlevel 11
echo %ERRORLEVEL%
REM prints 11
```