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

2020-01-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

上一篇下一篇

猜你喜欢

热点阅读