Thursday, May 6, 2010

Windows etc/hosts File Shortcut

When you have a web server cluster behind the LB, and you need to do a timely uni-cast test of each/any server by putting a host entry for some URL, i know you have to play with a lot of host entry / delete.
To quickly access the hosts file go Start -> Run -> Type drivers -> Ok.

This will bring up the folder before the hosts file, just double click into the etc directory from there - > right click on host file and open with your favorite text editor.

There in you put host entry. Syntax : <(host)URL>


This etc/host file can be put in a short cut - which makes life easier if your opening and closing the same quite frequently -

Right click on the desktop -> Create Shortcut and put the below as target

%windir%\system32\notepad.exe "c:\WINDOWS\system32\drivers\etc\hosts"

Cheers!!! Save time, skip fast...


No comments:

Post a Comment

Why Database CI/CD?

Making the Database Part of Your Continuous Delivery Pipeline The database, unlike other software components and code or compiled co...