- 设置环境变量
:: 设置环境变量
:: 关闭终端回显
@echo off
set ENV_PATH=%PATH%
@echo ====current environment:
@echo %ENV_PATH%
:: 添加环境变量,即在原来的环境变量后加上英文状态下的分号和路径
set GIT_PATH=C:\Program Files\Git\bin\git.exe
set ENV_PATH=%PATH%;%GIT_PATH%
@echo ====new environment:
@echo %ENV_PATH%
pause
- 静默安装文件
ECHO 正在安装AD-aware 6,请稍等……
start /wait C:\Users\zyz\Downloads\Git-2.19.0-64-bit.exe /s
ECHO
- 配置host
echo 0.0.0.0 account.jetbrains.com >> C:\Windows\System32\drivers\etc\hosts
type C:\Windows\System32\drivers\etc\hosts
pause
网友评论