HOST 批处理

@echo off
SET PATH=%SystemRoot%\system32\drivers\etc\hosts
echo. >>%PATH%
echo 127.0.0.1 local.a.com>>%PATH%
echo 127.0.0.1 local.b.com>>%PATH%
echo 127.0.0.1 local.c.com>>%PATH%
echo 127.0.0.1 local.d.com>>%PATH%
echo "按enter键显示本地地址"
pause
ping -n 2 local.a.com
exit


你可能感兴趣的:(批处理,host)