Microsoft DOS taskkill command

Taskkill是Microsoft Windows XP专业版及后续操作系统中的外部命令,允许用户从MS-DOS提示符终止任务。此命令不适用于Windows XP家庭版用户,这些用户需要使用tskill命令。Taskkill命令可通过多种参数指定要终止的任务。
摘要由CSDN通过智能技术生成

FROM:http://www.computerhope.com/taskkill.htm

Quick links

About taskkill
Availability
Syntax
Examples

About taskkill

Allows a user running Microsoft Windows XP professional or Windows 2003 to kill a task from a MS-DOS prompt.

Note: Users running Windows XP home edition do not have access to this command.  You will need to use the command tskill .

Availability

The taskkill command is an external command that is available in the below Microsoft operating systems.

Windows XP Professional
Windows Vista
Windows 7

Syntax

taskkill [/s Computer] [/u Domain/User [/p Password]]] [/fi FilterName] [/pid ProcessID]|[/im ImageName] [/f][/t]

/s computerSpecifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u domain/userRuns the command with the account permissions of the user specified by User or Domain/User. The default is the permissions of the current logged on user on the computer issuing the command.
/p passwordSpecifies the password of the user account that is specified in the /u parameter.
/fi FilterNameSpecifies the types of process(es) to include in or exclude from termination. The following are valid filter names, operators , and values.
Name Operators Value
Hostnameeq , ne Any valid string.
Statuseq, neRUNNING|NOT RESPONDING
Imagenameeq, neAny valid string.
PIDeq, ne, gt , lt , ge , le Any valid positive integer.
Sessioneq, ne, gt, lt, ge, leAny valid session number.
CPUTimeeq, ne, gt, lt, ge, leValid time in the format of hh:mm:ss. The mm and ss parameters should be between 0 and 59 and hh can be any valid unsigned numeric value.
Memusageeq, ne, gt, lt, ge, leAny valid integer.
Usernameeq, neAny valid user name ([Domain/]User).
Serviceseq, neAny valid string.
Windowtitleeq, neAny valid string.
/pid processIDSpecifies the process ID of the process to be terminated.
/im ImageNameSpecifies the image name of the process to be terminated. Use the wildcard (*) to specify all image names.
/fSpecifies that process(es) be forcefully terminated. This parameter is ignored for remote processes; all remote processes are forcefully terminated.
/tSpecifies to terminate all child processes along with the parent process, commonly known as a tree kill.

Examples

taskkill /f /im notepad.exe

Kills the open notepad task, if open.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值