Kill a Process from the Windows Command Line

To terminate a process from the command line of windows, use the taskkill command:
When you know the name of the image to stop:
taskkill /IM notepad.exe
Or when you know the process ID, eg 784:
taskkill /PID 784
For more usage variants, type taskkill /?

NB: some of this information about what processes are running can be obtained by the tasklist command.

If you have a low-traffic website, consider joining the Money4Banners advertising network. They will pay you £10 + £5 each month for displaying a small advert on three of your pages, regardless of traffic. American webmasters are welcome, and since £10 == $20, you make more!


4 Responses to “Kill a Process from the Windows Command Line”  

  1. Gravatar Icon 1 James

    You are the best. I have been looking for this command to refresh the registry after merging a reg file. Thanks

  2. Gravatar Icon 2 Frank Visa

    yes, perfect. Thank you

  3. Gravatar Icon 3 Martin

    Thank you!

  4. Gravatar Icon 4 matheo

    This is not working in win98… help!

Leave a Reply

You must log in to post a comment.


Categories