proxy_switch.bat

on

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 127.0.0.1:9900 /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "localhost;127.*;10.*;172.*;*baidu.com;*qq.com;*cnblogs.com;" /f
taskkill /f /im SystemSettings.exe && start ms-settings:network-proxy
taskkill /f /im SystemSettings.exe
C:\v2-windows-64\v2.exe
pause

::netstat -nao
::tasklist|findstr "id"

off

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
taskkill /f /im SystemSettings.exe && start ms-settings:network-proxy
taskkill /f /im SystemSettings.exe

posted on 2022-01-13 23:38  ims-  阅读(51)  评论(0编辑  收藏  举报

导航