Getting an access denied error while you are trying to edit the hosts file in Windows 7? This tutorial teaches you how to fix it. <br />The code which you need to copy and paste is provided below: <br />C:\Windows\System32\notepad.exe C:\WINDOWS\system32\drivers\etc\hosts