提交 a175c598 编写于 作者: T tomisawk

Set environment variables for current process

setx command doesn't affect current process, so use also 'set VAR=VALUE'
上级 24c57b88
@echo off @echo off
set /P NVM_PATH="Enter the absolute path where the zip file is extracted/copied to: " set /P NVM_PATH="Enter the absolute path where the zip file is extracted/copied to: "
setx /M NVM_HOME "%NVM_PATH%" set NVM_HOME=%NVM_PATH%
setx /M NVM_SYMLINK "C:\Program Files\nodejs" set NVM_SYMLINK=C:\Program Files\nodejs
setx /M NVM_HOME "%NVM_HOME%"
setx /M NVM_SYMLINK "%NVM_SYMLINK%"
setx /M PATH "%PATH%;%NVM_HOME%;%NVM_SYMLINK%" setx /M PATH "%PATH%;%NVM_HOME%;%NVM_SYMLINK%"
if exist "%SYSTEMDRIVE%\Program Files (x86)\" ( if exist "%SYSTEMDRIVE%\Program Files (x86)\" (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册