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作为替代。
taskkill