@echo off
color 0F
@attrib -r "%windir%\system32\drivers\etc\hosts"
@echo ######测试配置 beg >>"%windir%\system32\drivers\etc\hosts"
@echo 59.213.55.39 www111.help.do.com >>"%windir%\system32\drivers\etc\hosts"
@echo 59.213.55.39 query.help.do.com >>"%windir%\system32\drivers\etc\hosts"
@echo ######测试配置 end >>"%windir%\system32\drivers\etc\hosts"
@attrib +r "%windir%\system32\drivers\etc\hosts"
引用自 http://blog.csdn.net/love__coder/article/details/6700257