批处理改hosts

@echo off  
color 0F  
@attrib -r "%windir%system32driversetchosts"  
@echo ######测试配置 beg >>"%windir%system32driversetchosts"   
@echo 59.213.55.39  www111.help.do.com >>"%windir%system32driversetchosts"   
@echo 59.213.55.39  query.help.do.com >>"%windir%system32driversetchosts"  
@echo ######测试配置 end >>"%windir%system32driversetchosts"   
@attrib +r "%windir%system32driversetchosts"  

引用自  http://blog.csdn.net/love__coder/article/details/6700257

原文地址:https://www.cnblogs.com/gxivwshjj/p/5216066.html