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.

link|improve this question

65% accept rate
1  
1  
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
feedback

2 Answers

up vote 7 down vote accepted

You can use the TaskKill command:

taskkill /IM app.exe
taskkill /IM app*.exe
link|improve this answer
that is what I am looking for. Thanks – justintime Apr 4 '10 at 17:58
feedback

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

link|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
feedback

Your Answer

 
or
required, but never shown

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