Friday, November 13, 2009

Edit hosts file on Vista or Windows 7

Non-frequent Edit

1. All Programs --> Accessories --> right-click Notepad --> open as Administrator.

2. browse and open C:\Windows\System32\drivers\etc\hosts file

Now you can edit and save the hosts file.

Frequent Editing

1. All Programs --> Accessories --> right-click Notepad --> send to desktop

2. Right-click the shortcut on Desktop --> properties

3. Click the advanced button --> Select Run as administrator --> OK

4. Replace %SystemRoot%\system32\notepad.exe with %SystemRoot%\system32\notepad.exe C:\Windows\System32\drivers\etc\hosts in the target box

5. Click OK in the properties window

Now all you have to do is open that shortcut to open your hosts file with Notepad with administrative privileges to edit and Save.

No comments:

Post a Comment