tianlong11 发表于 2009-8-11 22:33:24

使用Windows 7命令提示符结束指定进程

使用Windows 7命令提示符强制结束指定进程:一般情况下,我们在需要结束某个进程往往会选择右键任务栏 - 任务管理器 - 右键某进程 - 结束的方式来进行。但其实我们还可以通过命令来对此操作进行更多的选项。

首先,

* 开始菜单- 程序 - 附件 - 命令提示符
* 右键 - 以管理员身份运行
* 输入tasklist,出现如下列表:

Image Name                     PID Session Name      Mem Usage
========================= ======== ================ ============
saayaa.exe                  26356 Console            39,352 K
regedit.exe                  24244 Console               9,768 K
cmd.exe                      18664 Console               2,380 K
conhost.exe                   2528 Console               7,852 K
notepad.exe                  17364 Console               7,892 K
notepad.exe                  24696 Console            22,028 K
notepad.exe                  25304 Console               5,852 K
explorer.exe                  2864 Console            72,232 K

接下来,如果我们想要结束某个程序的所有进程的话,比如,notepad.exe,可以输入

Taskkill /IM notepad.exe /F

如果只想结束某程序的某个进程的话,可以输入该进程的PID来实现,比如:

Taskkill /PID 17364 /F

这里的F表示强制结束。
页: [1]
查看完整版本: 使用Windows 7命令提示符结束指定进程