Win2008 r2 hosts file modification method

  

win2008 r2 is the 64-bit system hosts file path is C:\\Windows\\System32\\drivers\\etc\\hosts

Method 1

The first method is very popular on the Internet. The method of covering is to copy the hosts file to another place, and then fix it and then cover it back. In the middle, the target folder will be prompted to deny access. You need to provide administrator rights. Click Continue. This is a very simple method, not much to talk about here.

Method 2

, change with Notepad

First in the Start menu, use the administrator Permission to open a Notepad, and then open the hosts file in Notepad, because it is opened with administrator privileges, so you can save. The specific steps are as follows:

1, Start Menu->Accessories-> Right click on “Notepad”->Run as administrator, (Operation as shown)

2. After opening, open the hosts file with Notepad (win2008 r2 is a 64-bit system) The path of the hosts file is C:\\Windows\\System32\\drivers\\etc\\hosts, (the operation is as shown)



3. After the point is opened, write again. Well, your own hosts statement can be saved directly. (Operation as shown)

Method three

, change with batch

1, write the following code to txt file, and save as “lds;hosts” .bat” file (note here, if some friends' computers do not display file suffixes, so direct naming is invalid, you need to display the suffix of common files in the folder options). The contents of the file are as follows:
Copy the code
The code is as follows: @echo off del %systemroot%\\system32\\drivers\\etc\\hosts echo 127.0.0.1 www.test.com >>%systemroot%\\ System32\\drivers\\etc\\hosts start http://www.jb51.net

2, change the IP and domain name to what you want,

3, right click ” Hosts.bat” file, choose to run with administrator privileges. Just fine. (Operation is shown)

author: PC peripherals fashion network

Copyright © Windows knowledge All Rights Reserved