.; .; CHECKDATE.CMD .; .; Command file placed as the first part of the STARTUP.CMD file to .; make sure that the year is correct and that the date is greater than .; the last boot date. .; .; Submitted to the TARLUG library by Russ Brown .; .ENABLE SUBSTITUTION .SETS YEAR "84" .;SET /NOLOGON .OPENR DATE.DAT;1 .READ OLDDAT .CLOSE .SETS DEF "09:00 "+OLDDAT .DISABLE DISPLAY .ASKS [0:17:DEF:60S] TIM ENTER TIME DATE (HR:MN DD-MMM-YY) .ENABLE DISPLAY .PARSE TIM " " T D .IF D < OLDDAT ; DATE IS PROBABLY WRONG, CHECK IT .OPEN DATE.DAT;1 .DATA 'D' .CLOSE TIM 'TIM' .PARSE "-" A B Y .IF Y NE YEAR ; TURKEY, IT IS 1984 .IF Y NE YEAR TIM 'A'-'B'-'YEAR'