dos下查找进程,如果找到echo find并结束该进程

@echo off
set var=chromedriver.exe
tasklist | findstr "%var%" && echo find
taskkill /im %var% /f


exit

原文地址:https://www.cnblogs.com/songanwei/p/9086938.html