How do I write an NT batch script that will reschedule itself an hour later ?
ie
If the condition is true, then run script and stop there.
If condition is false , reschedule for 1 hour later.
eg
:START
IF EXIST FILE.FLAG GOTO MAIN
get current time extracting only hours
newtime = current time + 1
AT newtime JOB.BAT
GOTO END
:MAIN
do something
:END
ie
If the condition is true, then run script and stop there.
If condition is false , reschedule for 1 hour later.
eg
:START
IF EXIST FILE.FLAG GOTO MAIN
get current time extracting only hours
newtime = current time + 1
AT newtime JOB.BAT
GOTO END
:MAIN
do something
:END