那个商同学 (@NGSTX) 在 一种让CMD自动识别代理的配置方式 中发帖
自动代理设置
打开 CMD 自动显示:
[FLClash Running]
Proxy: ON
并且支持命令:
proxy on
proxy off
proxy status
整个过程 一步一步做即可,大约 3–5 分钟。
第一步:创建代理脚本
找到你之前的目录,例如:
C:\Tools
新建文件:
proxy.cmd
例如:
C:\Tools\proxy.cmd
把下面代码完整粘进去:
@echo off
set HOST=127.0.0.1
set PORT=7890
if "%1"=="on" goto on
if "%1"=="off" goto off
if "%1"=="status" goto status
goto help
:on
set http_proxy=http://%HOST%:%PORT%
set https_proxy=htt...