I am starting a command window with "start "DUMMYCOMMANDWINDOW" I am able to close the window with "taskkill /FI "WINDOWTITLE EQ DUMMY*" /f /t" But I want to close the window based on partial name of the window title, as in, "taskkill /FI "WINDOWTITLE EQ *COMMANDWINDOW" /f /t". How do I do this??
following command kills all the process that starts with 'chrom'.
taskkill /f /im chrom*
/f: force (use this from a cmd prompt in admin mode only) /im: image name
I hope you are familiar with wildcards
You can refer to following MSDN article
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With