taskkill - end tasks with window titles ending with a specific string
- by DBZ_A
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!