If you need to cause a process to start as soon at it stops, use the %0 batch parameter.
The %0 parameter contains the name of the invoked process, regardless of how it was invoked; i.e., by the scheduler, a batch, a shortcut, a program, or the Run command.
Here is an example of Continuous.bat:
@echo off
setlocal
set this=%0
YourProgram.exe
endlocal&%this%
0 comments
Hide comments