mirror of
https://github.com/envmodules/modules.git
synced 2026-06-03 00:33:18 +08:00
To handle installation path containing whitespaces like "C:\Program Files\Environment Modules".
11 lines
242 B
Batchfile
11 lines
242 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
|