task判断任务是否存在

tasklist|find /i "qq.exe" ||exit

taskkill /im qq.exe /f

原文地址:https://www.cnblogs.com/wcLT/p/4341963.html