edit the etc\hosts file

人走茶凉 提交于 2020-01-06 09:05:31

问题


Using C or a bat file, I'm trying to edit the file hosts file from c:\Windows\System32\drivers\etc but I can;t bc it is write protected.

Can you tell me what can i do?


回答1:


The program modifying the host file needs to run as Administrator




回答2:


Can you tell me what can i do?

Yes. Get the Administrator password or find another way to solve your problem.

If you describe what is your problem (rather than your issue on a possible solution) maybe we can figure a different (working) solution.



来源:https://stackoverflow.com/questions/4144342/edit-the-etc-hosts-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!