Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to kill the process activemq-all-5.5.1.jar(....\app-launcher\target\lib\activemq-all-5.5.1.jar). I use taskkill /im java.exe, but it kills all other applications related with java. I need to close this specific application only. Anyone can please help me? Thanks in advance.

share|improve this question

migrated from Jul 19 '12 at 6:29

This question came from our site for professional and enthusiast programmers.

Did you look at other taskkill options? – Germann Arlington Jul 18 '12 at 10:07
Voted for It seems more a question for admins that for powerusers trying to do some thing once. – helios Jul 18 '12 at 12:16


wmic process get  /format:csv

you can get detailed information about running process. you can be more specific with something like:

wmic process get processid,name,commandline /format:csv

or something like

 wmic process  get processid,name,commandline /format:csv | find "activemq"

and parse the result to get the exact PID (if you know the exact commandline ,process name or pid it will be easy). In this cases it convenient to start a process and get it's pid immediately.

share|improve this answer

You must log in to answer this question.