用 taskkill 强制关闭卡死的程序

在命令提示符中按进程名或 PID,用 taskkill 一秒关掉无响应的应用。

Windows进程系统命令提示符中风险
运行 `taskkill /IM notepad.exe /F`(把 notepad.exe 换成程序的 exe 文件名),立即强制结束卡死程序。

01命令

命令
$ taskkill /IM notepad.exe /F  ::  or by process id:  taskkill /PID 12345 /F

02作用说明

当程序无响应、任务管理器也不方便操作时,taskkill 可以直接结束进程。/IM 按可执行文件名匹配,/PID 按具体进程号匹配,/F 表示强制终止而不是先礼貌地请求窗口关闭。可先用任务管理器“详细信息”页或 `tasklist` 命令查到准确的进程名和 PID。

03风险

风险中风险
使用条件Killing processes of other users or system processes requires an elevated prompt.
!注意: 强制结束会跳过保存提示,该程序中未保存的文档或进度会丢失。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • taskkill
    Microsoft Learn · vendor-doc · 2026-09-17
    依据: Reference lists /IM, /PID and /F (forceful termination) flags for ending one or more tasks or processes.
  • TaskKill — Kill processes from the command line
    SS64 · technical · 2026-09-17
    依据: Shows TASKKILL /IM image name usage and the /F force flag.

最后验证: 2026-09-19 · 分类: 系统与设置

06相关方案