DEVenv/Win/Scripts/node_env.bat

24 lines
506 B
Batchfile

@echo off
setlocal EnableDelayedExpansion
set root_path=%devenver_root%\NodeJS
if "%~1"=="help" goto :help
if "%~1"=="" goto :help
if "%~1"=="--help" goto :help
if "%~1"=="/?" goto :help
goto :run
:help
echo USAGE: node_env.bat ^<version^> ^<command^>
echo.
echo VERSIONS:
ls %root_path%
goto :eof
:run
set version=%~1
for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b
echo [SCRIPT] Executing %root_path%\%version%\%remaining_args%
%root_path%\%version%\%remaining_args%