re-read - IE proxy settings from batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
kevinbarker
Posts: 7
Joined: 06 Mar 2012 08:02

re-read - IE proxy settings from batch file

#1 Post by kevinbarker » 26 Mar 2012 04:16

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

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

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

#2 Post by abc0502 » 26 Mar 2012 07:37

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

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

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

#3 Post by abc0502 » 26 Mar 2012 09:29

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

Post Reply