想连接×××后直接打开OA平台,实现一键访问。参考了网友们的代码结果如下

@echo off start "title" "C:\Program Files (x86)\Sangfor\SSL\SangforCSClient\SangforCSClient.exe"
::深信服×××客户端 goto findvpn

:findvpn tasklist | find "SangforServiceClient.exe" ::×××登录成功后生成以上进程,失败就循环,否则就打开OA If errorlevel 1 ( goto findvpn ) Else ( explorer "http://192.29.1.96:8080/oa" )

最后通过Bat_To_Exe_Converter转换为EXE程序 http://www.f2ko.de/en/b2e.php

参考链接 https://jingyan.baidu.com/article/4dc40848bdc5d1c8d946f1d6.html https://zhidao.baidu.com/question/2266125360462123628.html https://www.jb51.net/article/18980.htm

https://jingyan.baidu.com/article/922554466194df851648f4ba.html https://zhidao.baidu.com/question/488934464701039292.html