Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
superuser.com/questions/52159/… –  random Apr 4 '10 at 14:34
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
add comment

2 Answers 2

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
add comment

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
add comment

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.