6,185
社区成员
发帖
与我相关
我的任务
分享
@echo off
@echo 1=压测服务器 2=内容测试服务器 3=清空Host记录
@echo 请输入数字1-3选择你要登录的服务器
set /p str=
if %str%==2 @echo 222.222.222.222 www.baidu.com>%SystemRoot%\system32\drivers\etc\hosts&&@echo 222.222.222.221 www.google.cn>>%SystemRoot%\system32\drivers\etc\hosts
if %str%==3 @echo 127.0.0.1 localhost>%SystemRoot%\system32\drivers\etc\hosts
if %str%==1 @echo 222.222.222.223 www.baidu.cn>%SystemRoot%\system32\drivers\etc\hosts
pause
exit