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

来源:互联网 发布:免费网络拍卖平台 编辑:程序博客网 时间:2024/06/06 02:16


   

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

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

 


  1. @rem SetIeProxy.bat Createdby fanfeng  
  2. title Set IE Proxy  
  3. @echo off  
  4. :start  
  5. cls  
  6. echo.****************************************************************************  
  7. echo         [0] Stop Proxy  
  8. echo         [1] Use Proxy  
  9. echo         [q] Quit  
  10. echo.****************************************************************************  
  11.   
  12. set /p choice=Please Choose:  
  13. if /i "%choice%"=="0" goto SP  
  14. if /i "%choice%"=="1" goto Proxy  
  15. if /i "%choice%"=="q" goto end  
  16.   
  17. :Proxy  
  18. echo Please wait.....It will be configured automatically when finished......  
  19. reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f  
  20. reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyServer /d "61.166.68.71:80" /f  
  21. reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyOverride /t REG_SZ /d "<local></local>" /f  
  22. echo The JPNProxy enabled  
  23. echo Press any key to return  
  24. pause>nul  
  25. goto start  
  26.    
  27.   
  28. :SP  
  29. echo Please wait.....It will be closed automatically when finished......  
  30. reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f  
  31. reg add "HKCU/Software/Microsoft/Windows/CurrentVersion/Internet Settings" /v ProxyServer /d "" /f  
  32. echo The Proxy has been stopped  
  33. echo Press any key to return  
  34. pause>nul  
  35. goto start  
  36.   
  37. :end  
  38. exit  
0 0
原创粉丝点击