xp下去除hosts文件只读属性

echo y|cacls %windir%\system32\drivers\etc\hosts /g everyone:f
attrib -r -a -s -h %windir%\system32\drivers\etc\hosts

保存为*.bat 运行即可

发表评论