taskkill_Taskkill和Pskill

taskkill

taskkill

A very useful utility included with Windows XP and 2003 that a lot of folks may not be familiar with is Taskkill. This is installed in %WINDIR%\SYSTEM32\taskkill.exe. Here's some examples:

Taskkill是Windows XP和2003附带的一个非常有用的工具,很多人可能不熟悉。 它安装在%WINDIR%\ SYSTEM32 \ taskkill.exe中。 这里有一些例子:

 TASKKILL /S system /F /IM notepad.exe /T
 TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
 TASKKILL /F /IM notepad.exe /IM mspaint.exe
 TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
 TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
 TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *

TASKKILL / S系统/ F / IM notepad.exe / T 任务栏/ PID 1230 / PID 1241 / PID 1253 / T 任务栏/ F / IM notepad.exe / IM mspaint.exe 任务栏/ F / FI“ PID ge 1000” / FI“ WINDOWTITLE ne untitle *” 任务/ F / FI“ USERNAME eq NT AUTHORITY \ SYSTEM” / IM notepad.exe TASKKILL / S系统/ U域\用户名/ FI“ USERNAME ne NT *” / IM *

Nice things are that you can blow stuff away by Window Title, CPU Time, Status, using filters. It's not as flexible as stop-process in MSH, but I'll talk about Monad on this week's Hanselminutes and in a later blog post.

不错的是,您可以使用过滤器按“窗口标题”,“ CPU时间”,“状态”将内容吹走。 它不像MSH中的停止过程那样灵活,但是我将在本周的Hanselminutes和以后的博客文章中谈论Monad。

I've got a batch file called cleanprocesses.bat that is filled with "net stop" and "taskkill" commands that takes my number of processes down from my standard 103 to 50. While extreme, I've found that when I'm giving a talk this makes my machine more stable. (Of course, not starting up the superfluous processes in the first place would be more clever.)

我有一个名为cleanprocesses.bat的批处理文件,其中充满了“ net stop”和“ taskkill”命令,这些命令使我的进程数量从标准103减少到50。虽然极端,但我发现当我讲话可以使我的机器更稳定。 (当然,首先不启动多余的过程会更聪明。)

If you're running Windows 2000, I like PSKILL as an alternative.

如果您使用的是Windows 2000,我可以选择PSKILL作为替代

翻译自: https://www.hanselman.com/blog/taskkill-and-pskill

taskkill

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值