TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: Jasen Betts
from: Gerald Miller
date: 2002-11-11 00:20:56
subject: Eureka!

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=%=
  %%{at}instr[%{at}index[%orig,%{at}instr[0,2,%df]],2,%%date]%{at}instr[2,1,%df]%=
  %%{at}instr[%{at}index[%orig,%{at}instr[3,2,%df]],2,%%date]%{at}instr[5,1,%df]%=
  %%{at}instr[%{at}index[%orig,%{at}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)
SEEN-BY: 24/903 106/2000 120/544 123/500 140/1 342/5 512 400/300 633/104 260
SEEN-BY: 633/262 267 270 285 640/954 690/682 771/4020 774/605 2432/200
@PATH: 342/512 5 140/1 106/2000 123/500 774/605 633/260 285 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.