http://oloflarsson.se/wp-content/uploads/2014/01/logo.png 0 0 olof http://oloflarsson.se/wp-content/uploads/2014/01/logo.png olof2011-06-27 11:22:142011-06-27 11:22:14Quick link to edit the hosts file on windows 7
If you edit your hosts-file often it can be practical to have a shortcut that opens the file in a texteditor. This is how you would create such a shortcut on windows 7:
- Create a normal shortcut to the program notetad on your desktop.
- Edit the target of the link by adding “%SystemRoot%\system32\drivers\etc\hosts” at the end. That way the target of the link will be something like: “%windir%\system32\notepad.exe %SystemRoot%\system32\drivers\etc\hosts”.
- When you use the link you must right-click it and select “run as administrator”. Otherwise you won’t be able so save your changes.