bat批处理增加hosts文件常用域名

@echo y|cacls "C:\Windows\System32\drivers\etc\hosts" /e /p everyone:w
@echo\
@echo 61.135.169.121 www.baidu.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 123.125.115.55 wenku.baidu.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 163.177.151.76 tieba.baidu.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 153.3.236.87 zhidao.baidu.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 123.125.115.60 image.baidu.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 47.95.164.112 www.csdn.net >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 101.37.225.65 www.cnblogs.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 111.202.114.53 fanyi.baidu.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 61.135.217.20 fanyi.youdao.com >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 112.74.128.169 www.w3cschool.cn >>C:\Windows\System32\drivers\etc\hosts
@echo\
@echo 121.52.226.239 huaban.com >>C:\Windows\System32\drivers\etc\hosts
echo 修改完毕 按任意键退出~
@pause > nul

posted @ 2018-12-05 14:07  木初老狗  阅读(2915)  评论(0编辑  收藏  举报