chore: Add click-to-run scripts

This commit is contained in:
oSumAtrIX
2024-10-19 06:35:25 +02:00
parent 504c6c1ea5
commit e87ee9c5b8
19 changed files with 284 additions and 2 deletions

23
scripts/modules/run.bat Normal file
View File

@@ -0,0 +1,23 @@
@echo off
if "%~1"=="" (
set INVALID_ARGS=true
)
if defined INVALID_ARGS (
echo Run a command with arguments.
echo:
echo Usage: run.bat ^<command^> [arguments]
echo Example: run.bat echo Hello, World!
exit /b 1
)
%*
if %ERRORLEVEL% NEQ 0 (
echo:
echo Failed to run command with exit code %ERRORLEVEL%.
echo Failed command: %*
echo:
pause
exit /b %ERRORLEVEL%
)