node/tools/msvs/nodejsvars.bat

14 lines
370 B
Batchfile
Raw Normal View History

@echo off
2012-06-05 03:39:23 +08:00
@rem Ensure this Node.js is first in the PATH
set PATH=%~dp0;%PATH%
2012-06-05 03:39:23 +08:00
@rem Figure out architecture and print it.
setlocal
for /F "usebackq delims=" %%v in (`"%~dp0"node.exe -p -e process.arch`) do set arch=%%v
echo Your environment has been set up for using Node.js (%arch%) and NPM
endlocal
2012-06-05 03:39:23 +08:00
@rem Go to the user's home directory
cd /d %HOMEDRIVE%"%HOMEPATH%"