home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / uploads / datenull.ark / DATENULL.DOC next >
Encoding:
Text File  |  1989-12-05  |  3.0 KB  |  73 lines

  1.                                  DATENULL.RSX
  2.                                  ------------
  3.  
  4. December 5, 1989
  5.  
  6. DATENULL.RSX is designed to be attached to copy utility programs to cause 
  7. CP/M+ to set a null or blank file date/time stamp for the destination or 
  8. output file.  With this RSX attached active the CP/M+ will preserve the 
  9. meaning of the date/time stamps on source files by setting a blank or null 
  10. date/time on any copies made.
  11.  
  12. Without this RSX CP/M+ would set the destination file's "update" and/or 
  13. "create" stamp to the current date/time.  On examination (DIR.com d:afn 
  14. [DATE]) source or original files would show earlier dates than the copies.  
  15. This would be fine if you could always tell originals from copies as is the 
  16. case with backup files (.BAK).  When you can't tell which is which, the 
  17. meaning of ALL the stamps in a directory changes from "created/updated ON the 
  18. date/time shown" to "created/updated ON or BEFORE the date/time shown."
  19.  
  20. The term "copy utility" as used here means any program which faithfully copies 
  21. the contents on one file to another.  Programs such as NSWP, ARCOPY and ZFILER 
  22. fit the bill.  PIP, which can concatenate, extract, and otherwise modify files 
  23. does not.
  24.  
  25. Also archiving utilities may fit this definition of copy.  This RSX was 
  26. originally written for and tested with UNARC16 and could be attached to NULU, 
  27. CRUNCH/UNCR, LGET and the like.  With NULU, newly created or updated library 
  28. files (.LBR) will continue to be stamped with the current system date/time as 
  29. usual and only extracted files given null or blank date/time stamps.
  30.  
  31. I hope that other programmers will take note of the CP/M+ "set stamp" code 
  32. contained in this RSX and go it one better by using this code with the 
  33. F_TIMEDATE (BDOS 102) to pass the source file's time and date stamp to the 
  34. copy.
  35.  
  36. Gary R. Welles
  37. P.O. Box 1
  38. Old Mystic, CT  06372-0001
  39. MCI Mail/Telex 650 117-8863 MCI UW
  40.  
  41.  
  42.                                  INSTALLATION
  43.  
  44. To use this RSX it first must be installed in the application program by 
  45. GENCOM.COM:
  46.  
  47.     A>GENCOM program DATENULL.RSX    ;ie. A>GENCOM NULU DATENULL
  48.  
  49.  
  50.                                 USING SET.COM
  51.  
  52. If the RSX does not work as expected or conflicts with another program, 
  53. SET.COM can be used as an alternative to achieve similar results.
  54.  
  55. First remove the RSX from the application program with GENCOM.COM like so:
  56.  
  57.     A>GENCOM program                 ;ie. A>GENCOM NSWP
  58.  
  59. Examples of using SET to block NSWP using update stamping on drive B:
  60.  
  61.     As in a Submit file
  62.       A>SET B:[UPDATE=OFF]
  63.       A>NSWP
  64.       A>SET B:[UPDATE=ON]
  65.  
  66.     As in a multiple command line
  67.       A>SET B:[UPDATE=OFF]!NSWP!SET B:[UPDATE=ON]
  68.  
  69.                                   A REMINDER
  70.  
  71. To take advantage of CP/M+ date/time stamping you must BOTH initialize the 
  72. disk directory using INITDIR.COM and then set the stamping mode with SET.COM.  
  73.