先新建一个名为设置IE代理.bat的脚本文件然后添加如下内容(把192.168.4.64:4444修改成你自己的代理以及端口号)
@echo off
echo 开始设置IE代理上网
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 "192.168.4.64:4444" /f
echo 代理设置完成按任意键关闭
pause>nul
再新建一个名为取消IE代理.bat的脚本文件然后添加如下内容
@echo off
echo 开始清楚IE代理设置
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 IE代理清楚完成按任意键关闭
pause>nul
然后就行了吧
你可以先安装好代理服务器,然后发送快捷方式到桌面,再登录之后选择需要的城市,切换的话 断开再连就可以了
给 XAMPP 创建桌面快捷方式