Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there a command line way of stopping a process if I know the name of the exe (or better give a wildcard). I was about to jump in and write an autohotkey script to do it but I thought I would look for out of the box ways first.

Interested in Windows XP and Vista.

share|improve this question
Thanks @random. I did have a look for similar but used "stop" rather than "kill" so didnt see that one. Ho hum! – justintime Apr 4 '10 at 14:42
up vote 7 down vote accepted


You can use the taskkill command.

Note The command is not available in Windows XP Home/Starter Edition.


taskkill /IM app.exe
taskkill /IM app*.exe

Further reading

share|improve this answer
that is what I am looking for. Thanks – justintime Apr 4 '10 at 17:58

With PowerShell, you can use Stop-Process supplying either an id or name

share|improve this answer
Note however, that PowerShell is not supplied with the operating system for both XP and Vista. – Joey Apr 4 '10 at 15:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.