Files
weiyu/deploy/server/stop.bat
2024-10-21 07:19:58 +08:00

16 lines
348 B
Batchfile

@echo off
set RUN_NAME=bytedesk-starter.jar
set LANG=en_US.UTF-8
set PRG=%0
set APPDIRFILE=%~dp0
echo %APPDIRFILE%\%RUN_NAME%
for /F "tokens=2 delims= " %%G in ('tasklist ^| findstr /I %RUN_NAME%') do set PID=%%G
echo %PID%
if "%PID%"=="" (
echo bytedesk程序未启动
) else (
echo 已杀掉进程
echo %PID%
taskkill /PID %PID% /F
)