Easy Hosts File Editing

Posted: December 16, 2011 in Uncategorized

I update my host file a lot due to many VPN connections and locations I commute to.

Normally I would have to open notepad as an administrator, hope the etc path is still remembered, if not traverse those multiple directories, change the file types to any, open hosts, modify, save and close.

But I finally thought of a way to same me some time by creating a simple shortcut on my desktop.

  1. Create a new shortcut
  2. Update the Target property to “%windir%\system32\notepad.exe C:\Windows\System32\drivers\etc\hosts”
  3. Rename the shortcut to something like “Edit Hosts File”

Now each time just run the shortcut as the administrator and no having to track down the hosts file anymore.

  1. Don’t forget to install DNS flusher add on for firefox, much easier than opening and closing the browser.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s