Working for a web hosting company I edit my hosts file a LOT. And forever I did it the hard way, right click on notepad and then open as administrator then open the hosts file. Unacceptable! I need my hosts file open and ready in a split second. Time is money, money is time, time is infinite, money is power, power corrupts, illuminati! But I digress. Here are the steps.
1. Open command prompt as administrator. Right click on it and open as administrator.?Or go to your start screen and search for cmd then hold down CTRL + SHIFT + ENTER. I have classic shell installed because over the years I grew to love and admire the start menu and I refuse to give it up despite everyone’s love of the new start tile metro screen.
Note: You’ll know it’s open as Administrator because the top of the window will say so and the default path will be?C:\Windows\System32>. If you open command prompt as your normal user it will open to a default path of your user profile. IE C:\Users\user.name>
2. Type “notepad C:\Windows\System32\drivers\etc\hosts”. Without the “” into the command prompt.
3. Now the hosts file is open and notepad is running as administrator.