Subj : Eureka! To : Jasen Betts From : Gerald Miller Date : Mon Nov 11 2002 12:20 am Hello Jasen, I hope you like the subject line! I took: === Cut Begin: XBOOT3.DAT (compressed form) === PATH\PROGRAM TO RUN ³AFTER³ ³ ³DAYS ³ ³ DAYS³LAST RUN³NEXT RUN³ LEFT³ASK ÄÄÄÄ 061 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÅDD-MM-YYÅDD-MM-YYÅÄÄÄÄÄÅÄÄÄ call STEP_0.BTM ³1 ³30-10-02³00-00-00³0 ³N call STEP_1.BTM ³1 ³30-10-02³00-00-00³0 ³N call STEP_2.BTM ³14 ³19-10-02³00-00-00³0 ³N call STEP_3.BTM ³28 ³26-10-02³00-00-00³0 ³N call STEP_4.BTM ³7 ³26-10-02³00-00-00³0 ³N call STEP_5.BTM ³2 ³30-10-02³00-00-00³0 ³N call STEP_6.BTM ³3 ³30-10-02³00-00-00³0 ³N call STEP_7.BTM ³4 ³30-10-02³00-00-00³0 ³N === Cut End: XBOOT3.DAT === ran the batch file with your code and got: === Cut Begin: XBOOT3.DAT (compressed form) === PATH\PROGRAM TO RUN ³AFTER³ ³ ³DAYS ³ ³ DAYS³LAST RUN³NEXT RUN³ LEFT³ASK ÄÄÄÄ 001 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÅMM-DD-YYÅMM-DD-YYÅÄÄÄÄÄÅÄÄÄ call STEP_0.BTM ³1 ³11-10-02³11-11-02³1 ³N call STEP_1.BTM ³1 ³11-10-02³11-11-02³1 ³N call STEP_2.BTM ³14 ³11-10-02³11-24-02³14 ³N call STEP_3.BTM ³28 ³10-26-02³11-23-02³13 ³N call STEP_4.BTM ³7 ³11-10-02³11-17-02³7 ³N call STEP_5.BTM ³2 ³11-10-02³11-12-02³2 ³N call STEP_6.BTM ³3 ³11-10-02³11-13-02³3 ³N call STEP_7.BTM ³4 ³11-10-02³11-14-02³4 ³N === Cut End: XBOOT3.DAT === WOW! Beautiful piece of work: :: build a date conversion expression in a variable... set dateconversion=%= %%@instr[%@index[%orig,%@instr[0,2,%df]],2,%%date]%@instr[2,1,%df]%= %%@instr[%@index[%orig,%@instr[3,2,%df]],2,%%date]%@instr[5,1,%df]%= %%@instr[%@index[%orig,%@instr[6,2,%df]],2,%%date] :: aren't interpreted languages fun! Yes, and so...., so....., so elegant. I ran the batch again (it's just after midnight) and the data file: === Cut Begin: XBOOT3.DAT (compressed form) === PATH\PROGRAM TO RUN ³AFTER³ ³ ³DAYS ³ ³ DAYS³LAST RUN³NEXT RUN³ LEFT³ASK ÄÄÄÄ 001 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÅMM-DD-YYÅMM-DD-YYÅÄÄÄÄÄÅÄÄÄ call STEP_0.BTM ³1 ³11-11-02³11-12-02³1 ³N call STEP_1.BTM ³1 ³11-11-02³11-12-02³1 ³N call STEP_2.BTM ³14 ³11-10-02³11-24-02³13 ³N call STEP_3.BTM ³28 ³10-26-02³11-23-02³12 ³N call STEP_4.BTM ³7 ³11-10-02³11-17-02³6 ³N call STEP_5.BTM ³2 ³11-10-02³11-12-02³1 ³N call STEP_6.BTM ³3 ³11-10-02³11-13-02³2 ³N call STEP_7.BTM ³4 ³11-10-02³11-14-02³3 ³N === Cut End: XBOOT3.DAT === I've encountered a different sort of problem with one of the batch files that I am calling..... It is displaying 4dos error messages to the screen when called, yet when run from the commandline, the batch performs as it should. I'm gonna have to see if some variable names might be "bleeding" through.... Cheers ... Gerald --- GoldED+/386 v1.1.5-21101 * Origin: RAM DISK is NOT an installation procedure! (1:342/512) .