Files
modules/script/ml.cmd
2020-01-25 16:21:53 +01:00

14 lines
334 B
Batchfile

@echo off
:: initialize Modules if not already done
if not defined MODULES_CMD (
call "%~dp0..\init\cmd.cmd"
)
set OUTPUT=
:: execute each output line in cmd shell
for /f "tokens=*" %%I in ('call tclsh "%MODULES_CMD%" cmd ml %*') do %%I
:: quit with error code produced by modulecmd
if %errorlevel% NEQ 0 (exit /b %errorlevel%)