I am looking at a simple couple of lines that will cause my program to run until it is successfully completed.
I am thinking of using the following within my code:
IF EXIST C:\Progra~1\Player\settingschanged.dat GOTO END
(REST OF CODE DOES IT'S TASKS THEN SENDS TO REBOOT LABEL)
IF ERRORLEVEL=0 ECHO Settings changed>C:\Progra~1\Player\settingschanged.dat
shutdown -r -f -t 0
Thus will run until all done correctly and then file will exist so stop it from running?