Windows 10自动添加静态路由BAT代码
@ECHO OFF chcp 65001 setlocal EnableDelayedExpansion color 3e title 自动加路由 PUSHD %~DP0 & cd /d "%~dp0" %1 %2 mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :runas","","runas",1)(window.close)&goto :eof :runas route add 198.152.254.0 mask 255.255.255.0 10.10.11.254 echo 执行完毕,任意键退出 pause >nul exit