问题
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