简体   繁体   English

使用taskkill杀死进程窗口

[英]kill process windows using taskkill

I have a java script which is running and kills some processes according to the pid. 我有一个Java脚本正在运行,并根据pid杀死了一些进程。 I run a shell with command of "taskkill /F /pid " adding the pid of the process. 我运行带有“ taskkill / F / pid”命令的shell,并添加了进程的pid。 I have a problem that sometimes those processes are not killed. 我有一个问题,有时这些进程没有被杀死。 altouth I run the script again. 我再次运行脚本。

1) How can I find out why it is not killed ? 1)我如何找出未杀死的原因?
2) * Do you know a stronger program (than taskkill) in order to kill a process ??? 2) *您是否知道一个更强大的程序(比taskkill强大)才能杀死进程?

10X 10倍

There is a very useful tool called wmic that provides powerful process termination mechanisms. 有一个非常有用的工具,称为wmic,可提供强大的进程终止机制。

wmic process where "ProcessId=1234" CALL Terminate , 1234 being the pid of the process you want to kill wmic process where "ProcessId=1234" CALL Terminate ,1234是要杀死的进程的pid

for more details on how to use wmic see wmic 有关如何使用wmic的更多详细信息,请参见wmic

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM