@echo off
SET JC1=rtx.exe
SET JC2=keepass.exe
tasklist /nh|find /i "%JC1%"
if ERRORLEVEL 1 (Msg %username% %JC1%不存在,请启动此进程。)
tasklist /nh|find /i "%JC2%"
if ERRORLEVEL 1 (Msg %username% %JC2%不存在,请启动此进程。)
SET JC1=rtx.exe
SET JC2=keepass.exe
tasklist /nh|find /i "%JC1%"
if ERRORLEVEL 1 (Msg %username% %JC1%不存在,请启动此进程。)
tasklist /nh|find /i "%JC2%"
if ERRORLEVEL 1 (Msg %username% %JC2%不存在,请启动此进程。)
本文转自leonardos51CTO博客,原文链接: http://blog.51cto.com/leomars/1109883,如需转载请自行联系原作者