如何在Windows中杀死背景过程并保持前景过程运行
正如标题所说,我想杀死某个程序的所有背景程序,但要在Windows上保留运行的前景程序(Server 2016)。所有过程都使用相同的.exe,因此将它们分开的唯一方法是检查它们是否在后台运行。 使用任务列表我可以看到区别:
Abbildname PID Sitzungsname Sitz.-Nr. Speichernutzung
========================= ======== ================ =========== ===============
BpNexT.exe 6900 Services 0 254.936 K
BpNexT.exe 6164 Console 1 63.912 K
BpNexT.exe 6377 Services 0 251.234 K
必须杀死第一个和最后一个过程,第二个过程应继续运行。 我试图通过服务过滤,但失败了:
taskkill /IM BPNEXT.EXE /FI "services eq Services" /T /F
如何杀死所需的过程?
詹斯
as the title says, I want to kill all backgroundprocess of a certain program, but keep the running foreground program on windows (Server 2016). All the processes are using the same .exe and therefore the only thing to separate them is to check if they are running in background or not.
Using tasklist I can see the difference:
Abbildname PID Sitzungsname Sitz.-Nr. Speichernutzung
========================= ======== ================ =========== ===============
BpNexT.exe 6900 Services 0 254.936 K
BpNexT.exe 6164 Console 1 63.912 K
BpNexT.exe 6377 Services 0 251.234 K
The first and last process has to be killed, the second one should keep running.
I tried to filter by service, but failed:
taskkill /IM BPNEXT.EXE /FI "services eq Services" /T /F
How do I kill the desired processes?
Jens
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)