:restartMyProgramIf errorlevel 1 then goto restart
Change the line to read:If L$ = "Start" then SystemI don't remember the syntax, but the command "System" can be used to return an errorlevel. When your program finishes, the batch file will check the errorlevel. If it's greater than or egual to 1, it would send control back to the beginning of the file, which would start your program agian.
It looks like you're new here. If you want to get involved, click one of these buttons!