Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch file in two parts  (Read 3092 times)

0 Members and 1 Guest are viewing this topic.

James Sitch

  • Guest
batch file in two parts
« on: October 19, 2004, 09:35:08 AM »
I have been asked t help write a batch file.
It comes in two parts.
Part two should only execute if part one finishes befoe 10pm.
How can I check the time from within the batch file and tell it to skip part two if part one finishes after 10pm?

Thank you,

James

scruge

  • Guest
Re: batch file in two parts
« Reply #1 on: October 23, 2004, 07:40:38 PM »
try using the %time% to compare the time to..  I haven't used it in years but you may have to turn it on with the cmd /v  option.