I have a current batch file that runs every five minutes to move files from one server to the other. This job is running through the standard Windows Scheduler.
My question is two fold. How can I validate that the output message of my script:echo Completed copy of irr directory successfully at %date% %time% >> synchHHSC.log is generated? Also, how can I e-mail a message if the date time has not been updated. My thought was to run another bat file every 15 minutes to check for the latest time stamp, but I don't know how to set the commands to look for sysdate is greater than sysdate -10 minutes.
Any input would be helpful...also, here's the entire script as I am outputting to two seperate log files.
date /t >> synchhsc.log
time /t >> synchhsc.log
echo this script will copy over all of the media files from the
echo Austin SDDSN server to the San Angelo side.
echo press any key to continue, ctrl-C to exit
xcopy d:\media\dir\irr\en-us\hhsc\*.* \\x.x.x.x\d$\media\dir\irr\en-us\hhsc\ /s /c /y
echo Completed copy of irr directory successfully at %date% %time% >> synchHHSC.log