Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file gets exited before reaching the exit condition

Status
Not open for further replies.

tmurugan

Programmer
Dec 26, 2002
5
US
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..
Code:
:CHECK sleep 00:00:10 /PK 
if %time% GEQ 23:50:00.00 exit 
GOTO CHECK
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top