stop.bat
336 Bytes
@echo off
chcp 65001 >nul
echo 停止 qx-apaas-sync 应用 ...
powershell -NoProfile -Command "Get-CimInstance Win32_Process -Filter \"Name='java.exe'\" | Where-Object { $_.CommandLine -like '*qx-apaas-sync*' } | ForEach-Object { Stop-Process -Id $_.ProcessId -Force; Write-Output ('已停止 PID=' + $_.ProcessId) }"
echo 完成
pause