home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
ibm1
/
logdt.arj
/
LOGDT.DOC
< prev
next >
Wrap
Text File
|
1992-04-26
|
2KB
|
46 lines
LOGDT - Log Date & Time
Usage: logdt char_string
char_string contains any data and meta-characters.
The meta-characters are substituted as below:
&Y Year 1980 - 2099
&M Month 01 - 12
&D Day 01 - 31
&W Weekday var.string, max. 10 chars
&H Hours 00 - 23
&T minuTes 00 - 59
&S Seconds 00 - 59
&N Newline prints a new line
&V Verbose month var.string, max. 9 chars
Upper and lower case are both accepted. Note that LOGDT
does not print automatically a new line after its output
thus allowing you to append more data to the output line.
Example:
=======
LOGDT Today is &w, &v &d, &y.&n
will output:
Today is Sunday, April 26, 1992.
Typing LOGDT at the DOS prompt will display the above help text.
LOGDT was developed to make batch more informative:
An unattended batch execution can be traced back when you
insert the appropriate LOGDT commands into you batch file:
@echo off
LOGDT Start of PROG1 on &d-&v-&y at &h:&t&n>logfile
PROG1
LOGDT End of PROG1 on &d-&v-&y at &h:&t&n>>logfile
LOGDT Start of PROG2 on &d-&v-&y at &h:&t&n>>logfile
PROG2
LOGDT End of PROG2 on &d-&v-&y at &h:&t&n>>logfile