tasklist
taskkill /IM notepad.exe /F
taskkill /PID 17364 /F
指令法比圖形介面更靈活,可批次結束同名程式、依 PID 精準終結單一進程,適合腳本自動化或遠端管理場景。