2010-03-07, 04:22 PM
Hi all,
Need a little help with a batch file (can be dos or vbs)...
I need a simple if/else statement based on the time of day, ie:
if (earlier than 10am)
[INDENT] do something[/INDENT]
else
[INDENT] do something else[/INDENT]
I know how to do the "do" bit, but I can't suss out the time bit. I'm sure it's very simple, but my googling obviously isn't up to scratch today
Thanks
Need a little help with a batch file (can be dos or vbs)...
I need a simple if/else statement based on the time of day, ie:
if (earlier than 10am)
[INDENT] do something[/INDENT]
else
[INDENT] do something else[/INDENT]
I know how to do the "do" bit, but I can't suss out the time bit. I'm sure it's very simple, but my googling obviously isn't up to scratch today
Thanks