@echo off
setlocal
cd /d "C:\program files\my programs"
:again @ping -n 61 127.0.0.1>nul
set OK=N
for /f "Tokens=1" %%a ('pslist^|find /i "program"') do (
set OK=Y
)
if "%OK%" EQU "Y" goto again
start /min "C:\program files\my programs\program.exe"
goto again
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.