Faqts : Business : Operating Systems : Microsoft : bilal

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 11 people (91%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Operating system:Microsoft:XP: How to stop process from MSDOS command line? tasklist/pskill/taskkill

May 18th, 2009 16:41
Knud van Eeden, chat alarab,


----------------------------------------------------------------------
--- Knud van Eeden --- 26 March 2006 - 00:17 am ----------------------

Operating system:Microsoft:XP: How to stop process from MSDOS command 
line? tasklist/pskill/taskkill

===

Method: program: taskkill

---

Steps: Overview:

 1. Open an MSDOS box and type the following command:

     taskkill <some parameters>

    1. -For an overview of parameters see link below

 2. -You can shutdown several processes at once

     1. -For example, to shut down all applications that are not
         responding, type

          taskkill /fi "status eq not responding"

===

Method: program: pskill

Steps: Overview:

 1. -Get the process name

     1. -Get an overview of currently running processes, by typing
         (the program tasklist.exe is located in the
          c:\windows\system32\ directory)

           tasklist.exe /o

     2. -This shows e.g.

--- cut here: begin --------------------------------------------------

   0  System Idle Process
   4  System
 388  wmplayer          Media Event Sink Window
 472  smss
 536  csrss
 560  winlogon
 608  services
 620  lsass
 820  svchost

--- cut here: end ----------------------------------------------------

 2. -Kill the process, by running the utitility

      pskill.exe

     1. -Download this program

         1. -Goto URL

              http://www.sysinternals.com/utilities/pskill.html

         2. -Unzip the program

     2. -On the command line type

          pskill.exe -t <your process name>

         1. -E.g.

--- cut here: begin --------------------------------------------------

 pskill -t YahooDesktopSearch

 PsKill v1.11 - Terminates processes on local or remote systems
 Copyright (C) 1999-2005  Mark Russinovich
 Sysinternals - www.sysinternals.com

 2 processes named YahooDesktopSearch killed.

--- cut here: end ----------------------------------------------------

===

For pskill.exe options, type the following:

 pskill.exe

This will show e.g.

--- cut here: begin --------------------------------------------------

 PsKill v1.11 - Terminates processes on local or remote systems
 Copyright (C) 1999-2005  Mark Russinovich
 Sysinternals - www.sysinternals.com

 Usage: pskill [-t] [\\computer [-u username [-p password]]] <process 
ID | name>

             -t    Kill the process and its descendants
                   (here '-t' means 't'erminate)

             -u    Specifies optional user name for login to
                   remote computer.

             -p    Specifies optional password for user name. If you 
omit this
                   you will be prompted to enter a hidden password.

   <process ID>    a process number (e.g. 388)

 <process name>    a process name (e.g. wmplayer)

--- cut here: end ----------------------------------------------------

===

Method: program: tasklist.exe

Tasklist.exe will show currently running processes.

---

For tasklist.exe options, type the following:

 tasklist.exe /?

e.g.

--- cut here: begin --------------------------------------------------

Display a process list.

 tasklist [/O /P] [name]

--- cut here: end ----------------------------------------------------

===

Internet: see also:

---

[Internet: http://www.google.com search for 'taskkill': 
http://www.microsoft.com/resources/documentation/windows/xp/all/proddoc
s/en-us/taskkill.mspx?mfr=true]

---

[Internet: http://www.google.com search for 'kill process API 
TerminateProcess Delphi': 
http://www.swissdelphicenter.ch/torry/showcode.php?id=266]

---

Operating system: Microsoft: Windows: XP: Link: Overview: Can you give 
an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/34878/fid/868

----------------------------------------------------------------------