China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-03 09:55
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to use batch processing device proxy (the meaning is very good) View 1,662 Replies 10
Original Poster Posted 2006-07-24 08:57 ·  美国
新手上路
Credits 8
Posts 2
Joined 2006-07-24 06:54
20-year member
UID 59104
Status Offline
I want to directly use a batch script to set up a proxy like xxx.xxx.xx.xxx:8080,
so that when I run this batch script,
the proxy is automatically changed. How can I do this?
This batch script can be placed on the proxy server, which is very meaningful.


[ Last edited by thanatos on 2006-7-24 at 10:22 ]
Floor 2 Posted 2006-07-24 13:14 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Is the landlord talking about the proxy settings in IE? It can be achieved by modifying the registry.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-07-25 05:56 ·  美国
新手上路
Credits 8
Posts 2
Joined 2006-07-24 06:54
20-year member
UID 59104
Status Offline
Originally posted by electronixtar at 2006-7-24 13:14:
Is the landlord talking about the proxy settings in IE? It can be achieved by modifying the registry~~

May I ask which registry key is that? How to modify it?
Floor 4 Posted 2006-09-22 23:17 ·  IANA 局域网IP(Private-Use)
中级用户
★★
蝴蝶之吻
Credits 430
Posts 177
Joined 2006-09-20 12:00
19-year member
UID 63170
From 广东深圳
Status Offline
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

Here it is..
Floor 5 Posted 2006-09-23 00:00 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Introduce a command I found for all programs that call xmlHttp: proxycfg


Microsoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (C) Microsoft Corporation. All rights reserved.

Current WinHTTP proxy settings are at:
HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :

Proxy server : localhost
Bypass list : (none)

C:>proxycfg /?
Microsoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (C) Microsoft Corporation. All rights reserved.

Usage:

proxycfg -? : View help information

proxycfg : View current WinHTTP proxy settings

proxycfg ]

-d : Set to direct access
-p : Set proxy server and optional bypass list

proxycfg -u : Import proxy settings from the manual settings of the current user's Microsoft Internet Explorer
(in HKCU)

C:>
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
zhclvip +1 2007-02-07 23:20
redtek +6 2007-02-07 23:38

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 6 Posted 2006-09-23 00:18 ·  中国 北京 联通
银牌会员
★★★
努力做坏人
Credits 1,185
Posts 438
Joined 2006-08-28 12:00
19-year member
UID 61449
From 北京
Status Offline
Well, awesome, great, learned a new command again...........
我今后在论坛的目标就是做个超级坏人!!!
Floor 7 Posted 2006-09-23 01:47 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Last time I looked at all the exe files under system32, /? is in English and I didn't understand it. Now I've understood it well
Floor 8 Posted 2006-09-23 01:50 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Proxyserver /d x.x.x.x:8080 /f
start www.163.com
Under XP SP2, the proxy settings take effect only after reopening the web page.
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
zhclvip +1 2007-02-07 23:18
redtek +6 2007-02-07 23:38
Floor 9 Posted 2007-02-07 23:11 ·  中国 江苏 南京 电信
初级用户
★★
Credits 138
Posts 50
Joined 2007-01-23 10:59
19-year member
UID 77428
Gender Male
Status Offline
There are command line, and registry.
The几位 upstairs are really strong! Study &×……%
Floor 10 Posted 2007-02-07 23:15 ·  中国 江苏 苏州 联通
银牌会员
★★★
Credits 1,181
Posts 533
Joined 2006-08-14 12:54
19-year member
UID 60484
Status Offline
This command is great, learned something new. ^_^
Floor 11 Posted 2007-02-08 01:55 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
Brother V's key values have been learned
Forum Jump: