English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I use two wireless networks on my laptop, in which have different settings to use. One uses DHCP, the other uses manually entered IP and a proxy server.
I've written a batch file to switch between these settings, but the proxy has confused me. How would I go about adding and removing a proxy from a batch file/command line?

Windows XP MCE

2007-01-09 02:59:14 · 2 answers · asked by Mike 2 in Computers & Internet Computer Networking

2 answers

Proxy settings are stored in the registry under:
HKEY_CURRENT_USER\
Sofware\
Microsoft\
Windows\
CurrentVersion\
Internet Settings

You'll need to place a call to regedit.exe from within your batch file to make the changes. You can either merge a .reg file or key in the settings in longhand.

2007-01-09 03:18:05 · answer #1 · answered by Bostonian In MO 7 · 0 0

1) Run Registry Editor
2) Configure Your Proxy Setting for case1
3) Export the following Registry Path In a File named case1.reg:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
4) Configure your proxy settings for case2
5) export the same registry path (of item 3 above) to a file named case2.reg
6) Now in your batch file use this commands for case1 and case2 respectively:
REG IMPORT Case1.reg
REG IMPORT Case2.reg


Have a lot of fun

2007-01-09 11:18:53 · answer #2 · answered by ali_fakoor 3 · 0 0

fedest.com, questions and answers