taskkill - end tasks with window titles ending with a specific string

Posted by DBZ_A on Super User See other posts from Super User or by DBZ_A
Published on 2012-12-10T17:03:23Z Indexed on 2012/12/10 17:07 UTC
Read the original article Hit count: 273

Filed under:
|
|
|

I need to write a batch program to end all MS office communicator tasks with window titles (usually ending with pattern "- Conversation" .

I tried

taskkill /FI "WINDOWTITLE eq *Conversation" /IM communicator.exe

but the wildcard pattern starting with a '*' does not seem to work. Gives the folowing error

ERROR: The search filter cannot be recognized.

any suggestions for a workaround would be greatly appreciated!

© Super User or respective owner

Related posts about Windows

Related posts about batch