Windows 7 Forums


Reply
Thread Tools

[SOLVED] Batch change IE settings

 
 
makader makader is offline
New Member
Join Date: Oct 2010
Posts: 1
Thanked: 1
 
      10-22-2010
Hi,
Using batch it is really easy to change IE PROXY settings frequently whenever required.
However I created a batch named PROXY Customization to resolve the issue.Please visit the link to download the product http://techsolutionpoint.blogspot.co...-automate.html.

You will only required to change change the PROXY address & port. (It is tested in WINXPSP2 - if the batch not work in w7 then change the registry path).
You may also download it from http://www.techtopeace.com/2011/09/b...-ie-proxy.html.
It is free.

Last edited by makader; 09-20-2011 at 07:43 PM..
 
Reply With Quote
 
 
 
 
Fire cat Fire cat is online now
Established Member
Join Date: Mar 2010
Posts: 1,156
Thanked: 164
 
      10-22-2010
Um... Thanks?

I'm not too sure about needing changes to the registry though... I think I'll be analysing te files before running any of them.
 
Reply With Quote
 
TrainableMan TrainableMan is online now
^ The World's First ^
TrainableMan's Avatar
Join Date: May 2010
Location: PA, USA
Posts: 4,645
Thanked: 886
 
      10-22-2010
FC, apparently the proxy settings are stored in the registry under the IE software key (which makes sense) And then they have two Visual Basic scripts (VBS) to turn proxy on or off. I haven't looked at the VB scripts but the photo of the reg settings seems legit.

By all means do look it over but I do believe it will do exactly what you asked for.
 
Reply With Quote
 
Fire cat Fire cat is online now
Established Member
Join Date: Mar 2010
Posts: 1,156
Thanked: 164
 
      10-22-2010
I've looked at the source. Looks safe
Sorry, I kinda get suspicious with posts like that... It sometimes seems too good to be true!

I just have a question; what am I supposed to change in the .reg file? What's the ServerMask?

Last edited by Fire cat; 10-22-2010 at 12:19 PM..
 
Reply With Quote
 
TrainableMan TrainableMan is online now
^ The World's First ^
TrainableMan's Avatar
Join Date: May 2010
Location: PA, USA
Posts: 4,645
Thanked: 886
 
      10-23-2010
I see no reference to ServerMask? It needs you to set the proxy server IP & port - that's all I really see. Basically it is storing two settings to the registry that it can use to supply as parameters: one the proxy IP : Port and the other the setting with no proxy server in place.

Last edited by TrainableMan; 10-23-2010 at 12:26 PM..
 
Reply With Quote
 
Fire cat Fire cat is online now
Established Member
Join Date: Mar 2010
Posts: 1,156
Thanked: 164
 
      10-23-2010
Oh right. Sorry - I meant ServerOverride.

PFFT - I have been doing too much networking lately.
 
Reply With Quote
 
WalkingMarcos WalkingMarcos is offline
New Member
Join Date: Dec 2011
Posts: 1
Thanked: 1
 
      12-30-2011
I have created a simple batch file that will switch between whatever you set as a proxy server and turn on "Use a proxy server" in IE settings, and no server and turn off "Use a proxy server" in IE settings. I saw that you did not want to mess with your registry, however, this is the only way to set these settings from a batch file.

Code:
Code:
 
@echo off
REM Input your desired proxy server after "set proxy=".
set proxy=127.0.0.1:123
if '%proxy%'=='' (
goto USAGE
)
echo.
for /F "eol= tokens=1* " %%a in ('REG Query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyserver /t REG_SZ 2^>nul ^| find "REG_SZ"') do set str=%%b
set str=%str:~10,20%
if '%str%'=='' (
set str=Not assigned
)
echo Current proxy server: %str%
echo.
if "%str%"=="%proxy%" (
goto off
) else (
goto on
)

:ON
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyserver /t REG_SZ /d "%proxy%" /f >nul
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyenable /t REG_DWORD /d "1" /f >nul
for /F "eol= tokens=1* " %%a in ('REG Query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyserver /t REG_SZ 2^>nul ^| find "REG_SZ"') do set str=%%b
set str=%str:~10,20%
if '%str%'=='' (
set str=Not assigned
)
echo New proxy server: %str%
echo.
pause
goto end

:OFF
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyserver /t REG_SZ /d "" /f >nul
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyenable /t REG_DWORD /d "0" /f >nul
for /F "eol= tokens=1* " %%a in ('REG Query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v proxyserver /t REG_SZ 2^>nul ^| find "REG_SZ"') do set str=%%b
set str=%str:~10,20%
if '%str%'=='' (
set str=Not assigned
)
echo New proxy server: %str%
echo.
pause
GOTO END
 
:USAGE
echo.
echo Please input a proxy server to configure.
echo.
pause
goto end
 
:END
exit
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: How to Change your Password in Windows 7 hecongyan Security 9 05-17-2010 02:20 PM
Change Documents and Settings path Slurp Installation, Setup and Updates 4 04-10-2010 11:28 PM
Change Power Plan Ian System Administration 0 01-10-2010 04:47 PM
Change Visual Effects Settings - Discussion Ian Article Discussion 0 01-07-2010 03:58 PM
Change Visual Effects Settings Ian Appearance and Customization 0 01-07-2010 03:58 PM


All times are GMT +1. The time now is 04:14 PM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33