G
Guest
Guest
Archived from groups: microsoft.public.windows.networking.wireless (More info?)
Not sure if this is the best newsgroup to post this in, but here goes...
I use two IP addresses (both through wired and wireless connections) on my
laptop - one for work, one for home. Does anyone know how to write a simple
script that will detect the IP address and then choose which of two "hosts"
files to use? When at home, I want mydomain.com to be associated with
192.168.X.Y, but at work I don't want that association.
Currently, I have to go in manually each time and rename hosts to hosts.tmp
when at work, and then rename it back to hosts when I get home. I'd like
this to be done automatically.
Not sure if this is the best newsgroup to post this in, but here goes...
I use two IP addresses (both through wired and wireless connections) on my
laptop - one for work, one for home. Does anyone know how to write a simple
script that will detect the IP address and then choose which of two "hosts"
files to use? When at home, I want mydomain.com to be associated with
192.168.X.Y, but at work I don't want that association.
Currently, I have to go in manually each time and rename hosts to hosts.tmp
when at work, and then rename it back to hosts when I get home. I'd like
this to be done automatically.