将下面的批处理程序中红色的部分换成代理服务器的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