tasklist findstr code example Example: tasklist findstr Tasklist | findstr "abc.exe" IF %ErrorLevel% EQU 0 Taskkill /F /IM "abc.exe"