PDA

View Full Version : Reg file to turn proxy On and Off?


Dr Joolz
December 5th 03, 02:34 PM
Dear all, right now I'm using this to switch between work and home network
settings:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
Settings]
"ProxyEnable"=dword:00000000
(or "ProxyEnable"=dword:00000001 for proxy on at work)

When I go home I run a batch file that does this:

netsh -f home.conf
regedit.exe /s "D:\Backup\Network\proxyOff.reg"

Where home.conf contains:

interface ip
set address "Local Area Connection" dhcp
delete dns "Local Area Connection" all
delete wins "Local Area Connection" all
set dns "Local Area Connection" dhcp
set wins "Local Area Connection" dhcp

Pretty much letting my router at home to give it an ip with dhcp. All works
well except MSN messenger, it will not recognise the turning off of the
proxy at home and until I go to Internet Settings in Control Panel to set it
to on and then off again will MSN start working again. Am I missing
something? Please enlighten.

Thanks, Jules

***24 hours in a day...24 beers in a case...coincidence?***

Edward Chow
December 5th 03, 02:34 PM
Hi,

Try "Mobile Net Switch"- it can switch your network configurations without
running ugly batch files. Not sure if it works with Messenger though- i
think there is a link to a copy on http://bink.nu


--
Edward Chow
LX Technologies

BetaID: 527771
Office System 2003 Beta 2
Windows Messenger 5 Beta 1+2

"Dr Joolz" > wrote in message
...
> Dear all, right now I'm using this to switch between work and home network
> settings:
>
> [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
> Settings]
> "ProxyEnable"=dword:00000000
> (or "ProxyEnable"=dword:00000001 for proxy on at work)
>
> When I go home I run a batch file that does this:
>
> netsh -f home.conf
> regedit.exe /s "D:\Backup\Network\proxyOff.reg"
>
> Where home.conf contains:
>
> interface ip
> set address "Local Area Connection" dhcp
> delete dns "Local Area Connection" all
> delete wins "Local Area Connection" all
> set dns "Local Area Connection" dhcp
> set wins "Local Area Connection" dhcp
>
> Pretty much letting my router at home to give it an ip with dhcp. All
works
> well except MSN messenger, it will not recognise the turning off of the
> proxy at home and until I go to Internet Settings in Control Panel to set
it
> to on and then off again will MSN start working again. Am I missing
> something? Please enlighten.
>
> Thanks, Jules
>
> ***24 hours in a day...24 beers in a case...coincidence?***
>
>

Google