用CMD或者bat修改host文件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/libinemail/article/details/54668620

第一行代码标识 取消host的只读属性

第二行写入

attrib -R C:\WINDOWS\system32\drivers\etc\hosts 
@echo 127.0.0.1 baidu.com >>C:\WINDOWS\system32\drivers\etc\hosts 


猜你喜欢

转载自blog.csdn.net/libinemail/article/details/54668620