TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Richard Webb
from: Paul Quinn
date: 2008-12-16 12:03:00
subject: how would you approach this?

Hi! Richard,

In a message to All you wrote:

 RW> THis would need to run under dos 6.22 or earlier.

 RW> THe objective:  text Files are combined which contain data
 RW> entries.  Every 12 hours the file needs to be rebuild from
 RW> files containing data received or entered during the last 48 hours.
 RW> wHich means, we kill files older than 48 hours, rebuild.

 RW> AS earlier noted, this task would run twice a day.
 RW> Anyone?

Which part of the process works already (scheduling, rebuild -or- kill),
Richard?  :-)

Killing off old files is relatively easy.  I do something similar in my
toss batch for the Fidonews file echo:

[ ... ]
  :: Keep a small set of FidoNews files; 4 only,
    :: (/L5 is line #5 from the DIR /O-D output; i.e. oldest of 5 files).
    DIR /O-D/B/S %FBASEDRV%\FIDONEWS\*.ZIP|NSET /L5 OLD_FILE=$0
  IF EXIST %OLD_FILE% DEL %OLD_FILE%
[ ... ]

Mind you, it's made a little easier by knowing the _number_ of files
involved.  This method of file/filename manipulation with DIR & NSET
could also be used for the rebuild as well, I guess, if a rebuild is done
whenever a new (single) data file is received/generated.

Is this close to what you're after?

Cheers,
Paul.

--- Radius 4.010/21.01.2005(Final)
* Origin: Coming Soon: Mouse Support for Edlin! (3:640/384)
SEEN-BY: 633/260 267 640/384 954 1674 712/0 104 313 848 800/445
@PATH: 640/384 954 712/848 633/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™.