美文网首页
2020-01-16 bat脚本例子 隐藏黑框

2020-01-16 bat脚本例子 隐藏黑框

作者: 木人呆呆 | 来源:发表于2020-01-16 15:16 被阅读0次

    隐藏黑框

    @echo off
    %1 mshta vbscript:CreateObject("WScript.Shell").Run("%~s0 ::",0,FALSE)(window.close)&&exit
    ::开始启动软件
    java -jar Micro-Service-Skeleton-Register-2.0.0.jar
    ping 127.0.0.1 -n 15 >nul
    java -jar Micro-Service-Skeleton-Auth-2.0.0.jar
    ping 127.0.0.1 -n 5 >nul
    java -jar Micro-Service-Skeleton-Upms-2.0.0.jar
    ping 127.0.0.1 -n 5 >nul
    java -jar Micro-Service-Skeleton-Gateway-2.0.0.jar
    echo over
    

    关闭脚本

    @echo off
    for %%p in (9080,9082,9083,9010) do (
        for /f "tokens=5" %%i in ('netstat -ona ^| findstr "0.0.0.0:%%p"') do (
            taskkill /f /pid %%i
        )
    )
    pause
    
    

    相关文章

      网友评论

          本文标题:2020-01-16 bat脚本例子 隐藏黑框

          本文链接:https://www.haomeiwen.com/subject/vgbfzctx.html