jesusjsc

Cisco VPN断线重连批处理脚本
# Cisco VPN断线重连批处理脚本 --- 注意:文件编码保存为`gbk` xxx.xxx.x...
扫描右侧二维码阅读全文
09
2019/06

Cisco VPN断线重连批处理脚本

Cisco VPN断线重连批处理脚本


注意:文件编码保存为gbk
xxx.xxx.xxx.xxx为ip

@echo off

:loop

set ifqiyong=false
netsh interface show interface | findstr "VPN" | findstr "启用">nul && set ifqiyong=true || set ifqiyong=false
if %ifqiyong% == false (
   start "vpn" /WAIT "C:\\Program Files (x86)\\Cisco Systems\\VPN Client\\ipsecdialer.exe" -c "xxx.xxx.xxx.xxx"
)

TIMEOUT /T 5 /NOBREAK > NUL

goto loop
Last modification:May 29th, 2019 at 11:53 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment