home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
4ddbu500.exe
/
4DDBU.DOC
next >
Wrap
Text File
|
1991-08-01
|
13KB
|
313 lines
4DOS/DOS BATCH UTILITIES v5.00 Page -1-
1st August 1991
CONTENTS
--------
Limit of liability.............................................2
License information............................................2
Files included in the 4DOS/DOS Batch Utilities.................3
Use of each program............................................3
COMPACT.....................................................3
SQZ.BTM.....................................................4
GETCH.......................................................4
TIMEBOOT....................................................5
TIMEDASK....................................................5
History........................................................6
About 4DDBU....................................................6
Acknowledgments................................................7
4DOS/DOS BATCH UTILITIES v5.00 User Manual Page -2-
LIMIT OF LIABILITY
These utilities are distributed as-is. The author disclaims all
warranties, expressed or implied. The author will assume no
liability for damages either from the direct use of this product
or as a consequence of the use of this product. Further, the
author reserves the right to revise this publication and to make
changes from time to time in the content hereof without
obligation of the author to notify any person or organisation of
such revision or changes.
These utilities were originally distributed with the REBOOT suite
of programs. As they don't depend on the REBOOT program in any
way, they have now been released separately.
LICENSE INFORMATION
These utilities are the copyrighted property of Peter Ogden. You
are granted a limited license to use, copy, and distribute these
programs provided the following conditions are met:
A. Copying and distribution fees may not exceed $15.00
Australian.
B. The utilities may only be distributed in there original
unmodified state.
This software is distributed under the user supported software
concept. Though copyrighted, you are encouraged to copy and
distribute this program to others. If you like this product and
find it useful, a registration fee of $20.00 Australian (includes
free registration of REBOOT) is required for continued use. A
twelve month instant update plan is available (new versions
mailed to you as soon as they are complete) for an additional
$25.00 AUS. Site licenses are available at a reduced rate
(contact the author).
The user supported software concept (also known as 'shareware')
is an attempt to provide quality software at low cost. Both the
user and author benefit from this plan. The user will benefit by
being able to "test drive" software thoroughly before purchasing
it. The author benefits by being able to enter the commercial
software market while avoiding the high cost of commercial
distribution.
This concept helps many independent authors and small companies
that would otherwise be discouraged from developing and promoting
their ideas. It can only work with your support. If you obtain a
4DOS/DOS BATCH UTILITIES v5.00 User Manual Page -3-
user supported program from a friend and you are still using it
after a few weeks, then it is obviously worth something to you,
and a contribution should be sent.
For further information and registration, please send
correspondence to:
Peter Ogden
ESB Consultancy
P.O. Box 2259
Boulder, W.A.
Australia. 6432
Fax: +61 90 21 8364
or, for information, bug reports, or suggestions (not
registration) Netmail at 3:690/643.5 (FidoNet).
FILES INCLUDED IN THE 4DOS/DOS BATCH UTILITIES
4DDBU.DOC This document.
COMPACT.EXE Program that removes duplicates from a 4DOS
history file.
GETCH.EXE Program for displaying a supplied question on
screen requiring a single character reply.
Returns a DOS errorlevel dependent on the
answer.
REGISTER.FRM Registration form.
SQZ.BTM 4DOS Batch To Memory (BTM) program that removes
the duplicate entries from the in memory copy
of the command history.
TIMEBOOT.EXE Program (for AT compatibles only) to reboot the
computer automatically at a given time.
TIMEDASK.EXE Program for displaying a user supplied question
on screen (requiring a single character
answer), returning a DOS error level depending
on the answer (for use with batch files). The
question remains on screen for a maximum of 15
seconds.
USE OF EACH PROGRAM
COMPACT:
This program is only of use to users of 4DOS v3.0 or greater (if
you have not heard of 4DOS, see the note below).
4DOS/DOS BATCH UTILITIES v5.00 User Manual Page -4-
COMPACT removes duplicates from a 4DOS command history file. This
type of file is created by typing the following on the 4DOS
command line:
HISTORY > FILENAME.EXT
This creates a file named FILENAME.EXT containing the complete
list of commands entered since the start of 4DOS up to the
maximum memory size allocated to the 4DOS History. As this is a
complete list there are bound to be a few duplicated commands
where you have entered the command again rather than scrolling
back through the previous commands in the history.
COMPACT will remove these duplicates so that you may reload your
compacted history file from disk (with the HISTORY /R option -
see the 4DOS documentation). This compacted history results in
faster searches through the history for the desired commands.
COMPACT can handle a history file up to 8K in size, with lines of
up to 255 characters, and a maximum of 4096 lines.
Type "COMPACT /?" (without the quotes) to get a short explanation
of how to use COMPACT.
SQZ.BTM:
SQZ.BTM is a batch to memory file that will remove duplicates
from the "in memory" history. This 4DOS Batch To Memory (BTM)
program is an example of how COMPACT might be used. Note: SQZ.BTM
creates a temporary file (__HIST.TMP) during the process, and
deletes it after completion.
Another use for a compacted history file is to pre-load the
history during the AUTOEXEC.BAT to have frequently used commands
available via command history.
NOTE: 4DOS is a shareware replacement (by J.P. Software) for the
MS/PC-DOS COMMAND.COM. It enhances the existing commands,
adds several new commands, scrollable command history, and
heaps more. If you work with DOS at the command line or
write complex batch files, you should be using it! 4DOS is
available on good BBS's all over the world.
GETCH:
This program will optionally display a line of text that requires
a single character answer. This allows batch files to have user
4DOS/DOS BATCH UTILITIES v5.00 User Manual Page -5-
interaction while running. The program returns a DOS error level
which is the same as the ascii code of the uppercase equivalent
of the key pressed. This error level can then be used in a batch
"if errorlevel" statement to control flow while running.
e.g. GETCH Do you wish to run SCAN on C:? (Y/N)
GETCH waits for a key to be pressed, the errorlevel returned is
the ascii value of the uppercase equivalent of the key (i.e. y =
Y = 89, n = N = 78).
GETCH has two options: /F - Flush keyboard, and /W - Sound
Warning. The flush keyboard option removes any keystrokes entered
prior to the execution of GETCH to prevent accidental activation.
The warning option sounds a beep when the text is written to the
screen to draw the users attention.
TIMEBOOT:
This program will set the computer to automatically reboot itself
at a given time. This is a very simple program that sets the
alarm function of the AT Real Time Clock to activate the BIOS
boot sequence.
This program is not a TSR, no memory is reserved, and no
processing time is taken from the cpu.
To disable a previously set timed boot, type:
TIMEBOOT OFF
Type "TIMEBOOT /?" (without the quotes) to get a short
explanation of how to use TIMEBOOT.
NOTE: This version of TIMEBOOT is for AT compatible computers
only (it uses the alarm function of the built in clock).
TIMEDASK:
This program allows the user to display a question that requires
a single character answer (for use in batch programs). The
program returns an DOS error level which is the same as the ascii
code of the uppercase equivalent of the key pressed, or if the
user does not answer within 15 seconds, the program will time
out, returning a default error level of 0. The question entered
will flash after 10 seconds, and time out after 15 seconds.
4DOS/DOS BATCH UTILITIES v5.00 User Manual Page -6-
See GETCH for an example. Type "TIMEDASK" (without the quotes) to
get a short explanation of how to use TIMEDASK.
TIMEDASK has three options: /B - Beep count down, /F - Flush
keyboard, and /W - Sound Warning. The beep option beeps
approximately once per second for the last five seconds of the
timed ask, to draw the users attention. The flush keyboard option
removes any keystrokes entered prior to the execution of TIMEDASK
to prevent accidental activation. The warning option sounds a
beep when the text is written to the screen to draw the users
attention.
HISTORY
v4.01 : (and earlier) These utilities (with the exception of
GETCH) were previously a part of a suite of 4DOS/DOS
utilities by the name of REBOOT. As these utilities stand
alone from REBOOT and the size of the compressed files
was becoming large, it has been decided to distribute
these separately.
v4.02 : New program added: GETCH. Similar in function to
TIMEDASK, except GETCH will wait indefinitely for a users
reply. Minor optimisation performed on all utilities.
v5.00 : GETCH now has two new options: /F and /W. TIMEDASK now
has three new options: /B, /F, and /W. All programs are
now Desqview compatible. Further optimisation performed
on all utilities.
ABOUT 4DDBU
For those that are interested, the 4DDBU suite was written using
Turbo Pascal 6.0 and Turbo Assembler 2.0 with the assistance of
Turbo Debugger and Turbo Profiler. The unit libraries were
written by Glenn Crouch and Peter Ogden. The author would like to
thank Glenn Crouch and Jason Cowie (beta tester extraordinaire)
for their patience and thoroughness in beta testing the 4DDBU and
REBOOT programs.
4DOS/DOS BATCH UTILITIES v5.00 User Manual Page -7-
ACKNOWLEDGMENTS
4DOS is copyright Rex Conn & J.P. Software.
MS-DOS is copyright Microsoft.
Turbo Pascal and Turbo Assembler are copyright Borland.
Desqview is copyright Quarterdeck Office Systems.
---***---