Shortcut to My Hosts File

I don't know how often you need to edit your hosts file, but it seems like something I have to do on a daily basis, and its a pain. First the file is buried in Windows subdirectories, so you have to find the thing, and then when you do, it doesn't have an extension, so you constantly have to tell Windows what to open it with. Today, I finally managed to make a shortcut to launch it in Notepad.

  1. Create a new shortcut.
  2. Paste the following into the location:
    %windir%\notepad.exe %windir%\system32\drivers\etc\hosts
  3. Use the wizard to name it, and be happy.

That should work for almost everyone, unless your host file is located somewhere else.

 
Comments are not allowed for this entry.
Jon Hartmann, July 2011

I'm Jon Hartmann and I'm a Javascript fanatic, UX/UI evangelist and former ColdFusion master. I blog about mysterious error messages, user interface design questions, and all things baffling and irksome about programming for the web.

Learn more about me on LinkedIn.