Modify the Windows 7 system's Hosts to get the administrator's permission as fast as possible.

  

Simply say that the Hosts in the Windows
7 system are the IP addresses corresponding to some domain names, because Windows
7 strengthen the system permissions, so when modifying the file will prompt: "You do not have permission to save files in this location, please contact the administrator to get the corresponding permissions" error.

To solve this problem is very simple

Find the Hosts file The Windows7 system Hosts file path is: C:\\WINDOWS\\system32\\drivers\\etc\\hosts”.



Open Hosts with Notepad, modify the contents, and save.


Save the modified Hosts file and close it.


This method can also be used to solve the prompt without permission to modify the Hosts file.

Copy the following code to write the txt file, and save it as “hosts.bat” file, here, if some friends computer
does not display the file suffix, so directly The naming is not working, you want to display the suffix of the common file in the folder options.



@echo off

del %systemroot%\\system32\\drivers\\etc\\hosts

echo 127.0.0.1 www .test.com>>%systemroot%\\system32\\drivers\\etc\\hosts

start http://www.test.com

Right click on the ”hosts.bat” file, Choose to run with administrator privileges. Just fine.



Copyright © Windows knowledge All Rights Reserved