home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / logdt.arj / LOGDT.DOC < prev    next >
Text File  |  1992-04-26  |  2KB  |  46 lines

  1.  
  2.         LOGDT - Log Date & Time
  3.  
  4.         Usage:  logdt char_string
  5.  
  6.            char_string contains any data and meta-characters.
  7.            The meta-characters are substituted as below:
  8.  
  9.            &Y Year            1980 - 2099
  10.            &M Month             01 - 12
  11.            &D Day               01 - 31
  12.            &W Weekday         var.string, max. 10 chars
  13.            &H Hours             00 - 23
  14.            &T minuTes           00 - 59
  15.            &S Seconds           00 - 59
  16.            &N Newline         prints a new line
  17.            &V Verbose month    var.string, max. 9 chars
  18.  
  19.         Upper and lower case are both accepted. Note that LOGDT
  20.         does not print automatically a new line after its output
  21.         thus allowing you to append more data to the output line.
  22.  
  23.         Example:
  24.         =======
  25.  
  26.         LOGDT Today is &w, &v &d, &y.&n
  27.  
  28.         will output:
  29.  
  30.         Today is Sunday, April 26, 1992.
  31.  
  32.         Typing LOGDT at the DOS prompt will display the above help text.
  33.         LOGDT was developed to make batch more informative:
  34.  
  35.         An unattended batch execution can be traced back when you
  36.         insert the appropriate LOGDT commands into you batch file:
  37.  
  38.         @echo off
  39.         LOGDT Start of PROG1 on &d-&v-&y  at &h:&t&n>logfile
  40.         PROG1
  41.         LOGDT End   of PROG1 on &d-&v-&y  at &h:&t&n>>logfile
  42.         LOGDT Start of PROG2 on &d-&v-&y  at &h:&t&n>>logfile
  43.         PROG2
  44.         LOGDT End   of PROG2 on &d-&v-&y  at &h:&t&n>>logfile
  45.  
  46.