Subj : Revisions ... To : Jasen Betts From : Gerald Miller Date : Wed Oct 16 2002 06:34 pm Hello Jasen, On Tuesday October 15 2002 at 18:57, Jasen Betts [3:640/531.42] wrote to Gerald Miller, about: Revisions ... GM>> Here is my "revised" version, with the objectives at the end of GM>> this message. GM>> As you can see, I wish to add another "field" to the DAT file - GM>> "NEXT RUN". GM>> I found that it wasn't quite as simple... GM>> Can someone provide some insight on how I may insert the other GM>> "field"? JB> I can't test it witout a data file. Hmmmmm, the data file must have been truncated.... Here it is: === Cut Begin: XBOOT2.DAT === PATH\PROGRAMM TO RUN |AFTER DAYS|LAST RUN|NEXT RUN|ASK -----------------------------------------+----------+MM-DD-YY+MM-DD-YY+--- c:\windows\remind.btm |1 |10-14-02| |N call c:\btm\cortime.btm /s |1 |10-14-02| |Y call C:\4d\4x\STEP_2.BTM |14 |10-05-02| |N call C:\4d\4x\STEP_3.BTM |28 |10-05-02| |N === Cut End: XBOOT2.DAT === If you're wondering about STEP_2.BTM and STEP_3.BTM, I created one file and made multiple copies of it.... === Cut Begin: STEP_X.BTM === echo. echo This is STEP_1. echo. touch /q %_batchname === Cut End: STEP_X.BTM === I do hope you are aware of the "blank" sections... I was whacking around trying to determine the best way to calculate the NEXT field and using the blank sections to insert my code.... Couldn't hit upon anything that appeared to work satisfactorily, so I think it should be.....: %@MAKEDATE[%_NEXT] and I think %_next can be calculated in the Include subroutine... ??? === Cut: XBOOT2.BTM === [snip] echo %@format[-41.41,%_prog]³%@format[-10.10,%_when]³%= %@makedate[%_today]³ ³%_ask >> %_temp else echo %@format[-41.41,%_prog]³%@format[-10.10,%_when]³%= %_last³ ³%_ask >> %_temp endiff endiff iff "%_ask" eq "N" .or. "%_ask" eq "" then gosub include echo %@format[-41.41,%_prog]³%@format[-10.10,%_when]³%= %@makedate[%_today]³ ³%_ask >> %_temp endiff elseiff "%_prog" ne "" then echo %@format[-41.41,%_prog]³%@format[-10.10,%_when]³%= %_last³ ³%_ask >> %_temp endiff [snip] === Cut: XBOOT2.BTM === Cheers ... Gerald --- GoldED+/386 v1.1.5-21006 * Origin: I shot an arrow into the air, and it stuck. (1:342/512) .