Page 1 of 1

re-read - IE proxy settings from batch file

Posted: 26 Mar 2012 04:16
by kevinbarker
People.

I have a issue where i will run this batch file ( Which works great :) ) but when the proxy settings are re-applied, the only way to get IE to read the new proxy settings is to reload IE.

Is there a way to get IE to re-read the registry?

@ECHO OFF
cls
set reg=HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Reg Add "%reg%" /v "ProxyEnable" /t "REG_DWORD" /d "0" /f

start iexplore http://www.google.co.uk

::Wait and add reg key 1
Timeout /T 30
Reg Add "%reg%" /v "ProxyEnable" /t "REG_DWORD" /d "1" /f




Many thanks in advance

Re: re-read - IE proxy settings from batch file

Posted: 26 Mar 2012 07:37
by abc0502
I don't know if there is away to reload settings without restart but,
If Restarting IE didn't do the work as here:
http://www.dostips.com/forum/viewtopic.php?f=3&t=3093
what about a notification that pop-up to the user tell him/her to restart the IE

Code: Select all

Timeout /5
MSG * Please Restart The Internet Explorer

add that code at the end of your script.
and here is a link for exactly what you need if u understand this script you can make a batch file that do the same work.
http://www.codeproject.com/Articles/20756/Change-Internet-Explorer-7-Proxy-Setting-without-R

Re: re-read - IE proxy settings from batch file

Posted: 26 Mar 2012 09:29
by abc0502
hi, kevinbarker
I found what you looking for: it's a vb script save it with extention .vbs
http://www.vbforums.com/showthread.php?t=449751