例如:
@echo off
echo Add VPN route
FOR /F "tokens=2 delims=:" %%a in ('IPCONFIG ^|FIND "IP" ^|FIND "172.16."') do set _IP=%%a
set IP=%_IP:~1%
echo VPN IP = %IP%
BAT代码写成bat文件,
然后
RunWait(@ComSpec & " /C " & '"' & @ScriptDir & "\xxx.BAT" & '"', @ScriptDir, @SW_HIDE)
THE END
暂无评论内容