Bat判断进程是否运行状态中

判断MySQL运行状态的bat命令sample如下:

tasklist /fi "services eq MySQL" /fi "status eq running" >status.txt find /i "mysql" status.txt if %errorlevel%==0 (goto end) echo failure pause exit :end echo end pause

你可能感兴趣的:(技术代码类,mysql)