Re: [BATCH WORLD] How to query time and run at certain time with conditions
- View SourceThis small binary should help.
On Thu, 06 Dec 2001 17:32:53 -0000, "smithsht" <shon@...>
>This script has gone through several revs on this board. Now I need
>to take my existing script (below) and edit it in the follwing ways:
>Ensure host time is correct ("net time \\time-server /set /y"), query
>time command, check to see if the time is within a certain window
>(10:45pm - 4am). If Yes, then run script in it's entirety. If No,
>goto :end of script.
>The idea is that if within time window, tape backup is cold; if not
>within time window, we at least have a hot backup.
>All help is greatly appreciated as always.
--> Honk if you love peace and quiet.