@rem set proxy for windows, see https://twitter.com/i/status/1688220867132899328 @echo off setlocal EnableDelayedExpansion set "_flyargs=%*" set "_flyargs=%_flyargs:* =%" ( set all_proxy=http://127.0.0.1:8118 set http_proxy=http://127.0.0.1:8118 set https_proxy=http://127.0.0.1:8118 if "%1" == "" (set && exit /b 0) if "%2" == "" ("%1") else ("%1" %_flyargs%) )