home *** CD-ROM | disk | FTP | other *** search
- DATENULL.RSX
- ------------
-
- December 5, 1989
-
- DATENULL.RSX is designed to be attached to copy utility programs to cause
- CP/M+ to set a null or blank file date/time stamp for the destination or
- output file. With this RSX attached active the CP/M+ will preserve the
- meaning of the date/time stamps on source files by setting a blank or null
- date/time on any copies made.
-
- Without this RSX CP/M+ would set the destination file's "update" and/or
- "create" stamp to the current date/time. On examination (DIR.com d:afn
- [DATE]) source or original files would show earlier dates than the copies.
- This would be fine if you could always tell originals from copies as is the
- case with backup files (.BAK). When you can't tell which is which, the
- meaning of ALL the stamps in a directory changes from "created/updated ON the
- date/time shown" to "created/updated ON or BEFORE the date/time shown."
-
- The term "copy utility" as used here means any program which faithfully copies
- the contents on one file to another. Programs such as NSWP, ARCOPY and ZFILER
- fit the bill. PIP, which can concatenate, extract, and otherwise modify files
- does not.
-
- Also archiving utilities may fit this definition of copy. This RSX was
- originally written for and tested with UNARC16 and could be attached to NULU,
- CRUNCH/UNCR, LGET and the like. With NULU, newly created or updated library
- files (.LBR) will continue to be stamped with the current system date/time as
- usual and only extracted files given null or blank date/time stamps.
-
- I hope that other programmers will take note of the CP/M+ "set stamp" code
- contained in this RSX and go it one better by using this code with the
- F_TIMEDATE (BDOS 102) to pass the source file's time and date stamp to the
- copy.
-
- Gary R. Welles
- P.O. Box 1
- Old Mystic, CT 06372-0001
- MCI Mail/Telex 650 117-8863 MCI UW
-
-
- INSTALLATION
-
- To use this RSX it first must be installed in the application program by
- GENCOM.COM:
-
- A>GENCOM program DATENULL.RSX ;ie. A>GENCOM NULU DATENULL
-
-
- USING SET.COM
-
- If the RSX does not work as expected or conflicts with another program,
- SET.COM can be used as an alternative to achieve similar results.
-
- First remove the RSX from the application program with GENCOM.COM like so:
-
- A>GENCOM program ;ie. A>GENCOM NSWP
-
- Examples of using SET to block NSWP using update stamping on drive B:
-
- As in a Submit file
- A>SET B:[UPDATE=OFF]
- A>NSWP
- A>SET B:[UPDATE=ON]
-
- As in a multiple command line
- A>SET B:[UPDATE=OFF]!NSWP!SET B:[UPDATE=ON]
-
- A REMINDER
-
- To take advantage of CP/M+ date/time stamping you must BOTH initialize the
- disk directory using INITDIR.COM and then set the stamping mode with SET.COM.