24.07.2016 20:07

Статьи Protect windows process from crash in batch

The easy way to protect windows process from closes or crashes - it's necessary to add key /wait before process and create start label:
@echo off
set proc=winamp.exe
echo (%time%) %proc% process started.
start /wait %proc%
echo (%time%) %proc% closed or crashed, restarting...
goto start

Leave a Reply