mirror of
https://github.com/envmodules/modules.git
synced 2026-05-30 00:12:31 +08:00
12 lines
257 B
Batchfile
12 lines
257 B
Batchfile
@echo off
|
|
|
|
:: initialize Modules if not already done
|
|
if not defined MODULES_CMD (
|
|
call %~dp0..\init\cmd.cmd
|
|
)
|
|
|
|
set OUTPUT=
|
|
set MODCMD="call tclsh %MODULES_CMD% cmd %*"
|
|
:: execute each output line in cmd shell
|
|
for /f "tokens=*" %%I in ('%MODCMD%') do %%I
|