1. Go to Start > All Programs > Accessories, right click on Notepad and select Open as Administrator.
2. Now you’ll have a notepad that is running as an administrator. Go to File > Open, browse to C:\Windows\System32\drivers\etc. Select All Files from the drop down just above the Open button and then open the Hosts file for editing.
2. Now you’ll have a notepad that is running as an administrator. Go to File > Open, browse to C:\Windows\System32\drivers\etc. Select All Files from the drop down just above the Open button and then open the Hosts file for editing.
This trick also applies to other files as well. If you can’t save a file after editing in Windows 7 or Vista, just edit it as an administrator.
