用批处理修改IE代理服务器

 将下面的批处理程序中红色的部分换成代理服务器的IP和端口号,复制下来并保存为 IE代理.bat ,双击即可看到效果。

    注:其中 61.166.68.71 代表IP,80代表端口号

 

@rem SetIeProxy.bat Createdby fanfeng
title Set IE Proxy
@echo off
:start
cls
echo.****************************************************************************
echo         [0] Stop Proxy
echo         [1] Use Proxy
echo         [q] Quit
echo.****************************************************************************

set /p choice=Please Choose:
if /i "%choice%"=="0" goto SP
if /i "%choice%"=="1" goto Proxy
if /i "%choice%"=="q" goto end

:Proxy
echo Please wait.....It will be configured automatically when finished......
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyServer /d "61.166.68.71:80" /f
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyOverride /t REG_SZ /d "
    
    " /f
echo The JPNProxy enabled
echo Press any key to return
pause>nul
goto start
 

:SP
echo Please wait.....It will be closed automatically when finished......
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyServer /d "" /f
echo The Proxy has been stopped
echo Press any key to return
pause>nul
goto start

:end
exit
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值