Results 1 to 3 of 3

Thread: How to stop an application from Command prompt CMD?

  1. #1
    Join Date
    Mar 2008
    Posts
    416

    How to stop an application from Command prompt CMD?

    Hi,
    We use Task manager to stop Or kill any specific process. NOw how can i stop a processor an application from the command prompt window in Windows XP?
    Is it possible?

  2. #2
    Join Date
    Jan 2008
    Posts
    27
    Usually to stop a process, you start task manager, select the Processes tab, select the process and click "End Process" however you can also accomplish the same from the command prompt using 2 Resource Kit utilities.
    Firstly you need to get a list of all processes on the system and this is accomplished using the tlist.exe utility.

    C:\>tlist
    0 System Process
    2 System
    20 smss.exe
    26 csrss.exe
    34 WINLOGON.EXE
    42 SERVICES.EXE
    45 LSASS.EXE
    72 SPOOLSS.EXE
    91 Nettime.exe
    64 navapsvc.exe
    ...
    198 notepad.exe Untitled - Notepad
    214 TLIST.EXE
    The first part, the number, is the process ID, for example, 198 is the process ID of the notepad.exe process that is running. Once we know the Process ID (or PID) we can stop it using the kill.exe utility.

    C:\>kill 198
    process #198 killed

    You can optionally use the -f switch which forces the process kill.

    You may, if you wish, kill a process on its name instead, e.g.
    c:\>kill notepad.exe will also work.

    Source:windowsitpro.com

  3. #3
    Join Date
    Mar 2008
    Posts
    416
    Thanks a lot for this man-u!
    I was really searching for this. Just a small question on this, do all application ids are same or differ with different machine?
    Is there standard regarding this process name & process ID?

Similar Threads

  1. Navigating Command Prompt
    By zaid in forum Operating Systems
    Replies: 3
    Last Post: 20-08-2009, 08:54 AM
  2. Hide command prompt using C
    By Jagdish Gada in forum Software Development
    Replies: 2
    Last Post: 17-08-2009, 09:57 AM
  3. Start avg from command prompt
    By NSA_CIA in forum Operating Systems
    Replies: 2
    Last Post: 16-06-2009, 10:20 AM
  4. about the command prompt
    By Gorganzola in forum Windows Software
    Replies: 2
    Last Post: 17-10-2008, 06:24 PM
  5. Command prompt "COPY" command not working in brand new Windows Vis
    By CMD COPY command not working in Vista in forum Vista Help
    Replies: 7
    Last Post: 06-02-2008, 02:50 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,297,191.80209 seconds with 17 queries