REM ---Copy all of this text into a notepad and save it as a batch fileREM ---to see if a program is running@echo off :startset /p runningprocess=Enter a program name to see if it is running: rem ---- 1: all one line ----tasklist /FI "IMAGENAME eq %runningprocess%" | find /I "%runningprocess%" > nulrem ---- 1: end of lineIF %ERRORLEVEL% equ 0 ECHO Notepad is running IF %ERRORLEVEL% equ 1 ECHO Notepad is not running pause>nulgoto start