Think before you speak, read before you think.

bat判断一个进程是否存在

判断一个进程是否存在,不存在exit 存在就kill

tasklist|find /i “ia.exe” ||exit
taskkill /T /F /IM ia.exe

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *