Computer Hope

Microsoft => Microsoft DOS => Topic started by: James Sitch on October 19, 2004, 09:35:08 AM

Title: batch file in two parts
Post by: James Sitch 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
Title: Re: batch file in two parts
Post by: scruge 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.