首页 > 其他 > 详细

批处理:自动设置代理服务器

时间:2014-01-16 23:25:07      阅读:422      评论:0      收藏:0      [点我收藏+]

@echo off

title 自动设置代理服务器

echo 自动设置代理服务器

echo 需要以普通用户权限、管理员权限各运行本程序一次

rem echo 正在清空代理服务器设置…… 【接下来的三行红字是清空代理信息,已经注释掉了,使用时,取消注释就可以用】

rem reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

rem reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "" /f

rem reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d 0 /f rem echo 代理服务器设置已经清空

echo 正在设置代理服务器……

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 "代理的IP:端口" /f

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "" /f

echo 正在刷新设置…… ipconfig /flushdns

echo 显示新的设置: ipconfig /all

echo 正在关闭浏览器: taskkill /f /t /im IEXPLORE.exe

echo 正在开启浏览器 "C:\Program Files\Internet Explorer\IEXPLORE.EXE"

批处理:自动设置代理服务器

原文:http://www.cnblogs.com/cf2yy/p/3521924.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!