windows - How to do a taskkill in cmd based on the partial content of the windowtitle name? -
i starting command window "start "dummycommandwindow" able close window "taskkill /fi "windowtitle eq dummy*" /f /t" want close window based on partial name of window title, in, "taskkill /fi "windowtitle eq *commandwindow" /f /t". how do this??
following command kills process starts 'chrom'.
taskkill /f /im chrom*
/f: force (use cmd prompt in admin mode only) /im: image name
i hope familiar wildcards
you can refer following msdn article
Comments
Post a Comment