I have to automate the system using the Batch files. The Batch file goes on loop for checking the existence log files. When the log file comes, it triggers the other process. When all the log files came and the process is over, this batch file waits to reach the particular time by using the same loop with the following code..
But, it happens that before reaching the time 23:50:00.00, it gets exited around 03:30:00.00 itself. Can you explain, why it happens and guide me to fix this problem..
Thanks and Regards,
T. Murugan.
Code:
:CHECK sleep 00:00:10 /PK
if %time% GEQ 23:50:00.00 exit
GOTO CHECK
Thanks and Regards,
T. Murugan.