Kill Tool Commands

Use the following command syntax to run the Kill tool.

kill [/f] { PID | Pattern* } 

Parameters

  • /f
    Forces the termination of the process without prompting the user for confirmation. This option is required to terminate a protected process, such as a system service.

  • PID
    Specifies the process identifier (PID) of the task to be terminated.

    To find the PID for a task, use TaskList in Microsoft Windows XP and later or TList in Windows 2000.

  • Pattern*****
    Specifies all or part of the name of a task or window. The Kill tool terminates all processes whose process names or window names match the pattern. The asterisk is required.

    Before using a pattern that might match many process or window names unintentionally, use the tlist pattern command to test the pattern. See TList for details.

 

 

Send comments about this topic to Microsoft