home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
batutl
/
bat_time.arc
/
BAT-TIME.DOC
next >
Wrap
Text File
|
1988-05-11
|
6KB
|
153 lines
Documentation for BAT-TIME.EXE
Version:Beta
Written by Brian Woodworth
Released for public domain 5/11/88
Included files:BAT-TIME.EXE the executable file.
BAT-TIME.DOC this documentation.
DEMO*.BAT demonstration batch files.
Several more files will be created as you
run the demo's.
Program purpose:This program is for users that need to keep track of time
that is spent on their computer system. BAT-TIME.EXE can keep records of
start times, finish times and elapsed time totals. BAT-TIME.EXE can also
send time information to a disk file or to the printer.
Usage:BAT-TIME s|f|v|p [c] [filename]
Where:s to (s)tart timing.
f to (f)inish timing.
v to (v)iew output file.
p to (p)rint output file.
c to prompt for a Comment.
filename denotes output filename.
Usage notes:The comment(c) command can only be used with the start(s) command.
Filename, when used with finish(f) command, denotes name of file to send
output to. Filename, when used with view(v) command or print(p) command,
denotes what file to use for output. Command line parameters must be
separated by spaces. Case is not important.
Explanation of commands.
The 'S' command.
The s command is used when starting a timing cycle. When the command
BAT-TIME S
is issued BAT-TIME will display the starting time and date. Then a
small data file will be created name BAT-TIME.DAT. (This file must be
present on the default drive when the finish command is issued.) The
only other parameter valid with the start(s) command is the comment(c)
parameter.
The 'C' parameter.
The c parameter will cause BAT-TIME to prompt the user for a comment to be
stored in the output file with respect to the current timing cycle. This
parameter may only be used with the start(s) command. When the command
BAT-TIME S C
is typed BAT-TIME will first prompt the user for a comment
Enter comment>
your comment can be up to 20 characters(eg. RENO OFFICE). Any comments
longer than 20 characters will be truncated to 20 characters. After this
point the time and date information will be displayed. This information is
stored in the data file (BAT-TIME.DAT) and will be transferred to the output
file following the finish(f) command. This parameter is only useful when the
command
BAT-TIME F filename
is used to finish the timing cycle.(See f command and filename parameter.)
The 'F' command.
The finish(f) command is used to tell BAT-TIME to finish the timing cycle.
When the command
BAT-TIME F
is issued BAT-TIME will stop the timing cycle, display finish time, display
elapsed time and erase the data file (BAT-TIME.DAT). If output to an external
file is desired the filename parameter must be used.
The FILENAME parameter.
The filename parameter is used for three different cases. The first case
is for sending output to an external file. This is done when the finish(f)
command is issued. To stop the timing cycle and send the output to a file
called PAYROLL.TME type the command
BAT-TIME F PAYROLL.TME
This will also causes any comments, specified with the c parameter, to be
written to the output file. If the file already exists the new information
will be appended to the current file (added on to). If the file does not
exist a new one will be created and the new information written to it.
For an example of the data format contained in output files see the view(v)
or the print(p) commands. The filename parameter is also used with the
view(v) or print(p) commands to specify the file to be viewed or printed.
The 'V' command.
The view(v) command is used to view the contents of a file specified by
the command "BAT-TIME F Filename". The format of this command is
BAT-TIME V Filename
For example, if you want to view the contents of the file called PAYROLL.TME
type the command
BAT-TIME V PAYROLL.TME
The output will look similar to this.
_____________________________________________________________________________
|Start Time Finish Time Elapsed Comments |
|10:45:37 on 05/10/1988 14:51:42 on 05/10/1988 04:06:05 RENO OFFICE |
|15:00:25 on 05/10/1988 17:12:59 on 05/10/1988 02:12:34 L.A. OFFICE |
| |
|Elapsed time total = 06:18:39 |
|___________________________________________________________________________|
The 'P' command.
The print(p) command is used to send the contents of an output file to a
printer. The output is identical to the view(v) command. The command
BAT-TIME P PAYROLL.TME
will send the contents of the file PAYROLL.TME to a printer. BAT-TIME will
send a form feed (ascii character 12d) every 55 lines to make the print
easier to read.
Limitations.
-BAT-TIME will not accurately keep track of time across the change of months.
In other words if you start BAT-TIME at 11:55:00 on 07/31/1988 and finish
BAT-TIME at 01:32:30 on 08/01/1988 then output results will be unpredictable.
If for some reason the results are correct it will be by pure chance.
-The data file BAT-TIME.DAT must be on the default drive when the finish
command is issued. If this file is not present BAT-TIME will assume that
it has never been started. BAT-TIME will recognize this situation and
issue an error message. The data file need not be present during any other
time after the start command has been given.
-If you attempt to view(v) an output file that is not one created by
BAT-TIME the results will be unpredictable. BAT-TIME does not have any
resources for detecting this kind of error.
Notes.
-BAT-TIME can (and will) be restarted if the start command is issued a second
time before the finish command has been used. BAT-TIME does not attempt to
prevent this situation.
Have fun
Brian Woodworth