Hi,
I have a script running on windows 2008 r2 to wait for 1 hour for an external file before this script can proceed. However, the script just proceed without going to sleep.
This is the script that I have:
{
echo Program Start time: > D:\Reporting\Log\Mktg\weekly\Program_log.log
time /t >> D:\Reporting\Log\Mktg\weekly\Program_log.log
echo Sleep for 60 minutes....zzzz >> D:\Reporting\Log\Mktg\weekly\Program_log.log
timeout 3600 /nobreak
echo Program wake up time >> D:\Reporting\Log\Mktg\weekly\Program_log.log
time /t >> D:\Reporting\Log\Mktg\weekly\Program_log.log
}
This is the log generated:
{
Program Start time:
04:21 PM
Sleep for 60 minutes....zzzz
Program wake up time
04:21 PM
}
Please advise where is the problematic area.