TIP: Click on subject to list as thread! ANSI
echo: binkd
to: BILL MCGARRITY
from: BJRN FELTEN
date: 2015-01-30 23:46:00
subject: DST crash

 BM> I was thinking that as well but wanted to rename it mmddyyyy.log in a
 BM> separate directory.

   If you think you can settle for the international format (yyyymmdd), maybe
this will do the trick:

http://felten.yi.org/files/TURBO/DATENBR.ZIP

   Source code (Pascal) included.

- - - - datenbr.doc - - - -

DATENBR -- Version 1.0  /  Aug. 30 1997
by Bj”rn Felten @ FidoNet 2:203/208.
Released to the public domain for free distribution.


Usage: DATENBR   

Where  is any DOS command or batch file
       are the parameters for 

 may contain one or more occurrences of an 9-character
substitution string in the form:

      @cccccccc

The '@' is literal.  The 'c's may be any characters, but pound signs (#)
are treated special.  For each pound sign (#), the corresponding
digit of the datestring YYYYMMDD is copied to the parameter.  Other
characters are copied as-is to the parameter.

After parameter editing,  will be executed.

E.g.:

To rename NODELIST.TXT to NL940427.TXT (if 1994-04-27 is todays date),
and then zip it into NODELIST.ZIP just execute something like this:


      datenbr ren nodelist.txt @nl######.txt
      datenbr pkzip -ex nodelist.zip @nl######.txt


Datenbr will return any errorlevel that  returns which thus can
be tested for in the batchfile.

--- Paul's Win98SE VirtualBox
* Origin: Quinn's Post - Maryborough, Queensland, OZ (3:640/384)

SOURCE: echomail via QWK@docsplace.org

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™.