Batch check if a Program or Service is running

tasklist /FI "IMAGENAME eq %PROGNAME%" 2>NUL | find /I /N "%PROGNAME%">NUL
if "%ERRORLEVEL%"=="0" echo Programm is running
if "%ERRORLEVEL%"=="1" echo Programm is not running

%PROGNAME% needs to be replaced with your program name.

admin on February 18th 2012 in IT, Windows

No Comments »

Comments RSS

Leave a Reply

*




Check out new movies online website. Download and buy movies now.
1