Files
ObsidianHome/小鱼/闲鱼消息通知/stop-watch.bat
T

4 lines
269 B
Batchfile
Raw Normal View History

2026-11-09 09:21:06 +08:00
@echo off
powershell -NoProfile -Command "Get-CimInstance Win32_Process -Filter \"Name='node.exe'\" | Where-Object { $_.CommandLine -like '*watch.js*' } | ForEach-Object { Stop-Process -Id $_.ProcessId -Force; Write-Host ('stopped ' + $_.ProcessId) }"
echo done.
pause