I
memory).
(
- 20 -
Follows
will
show
you how to construct a special type of file,
called
a
BATCH
FILE.
A batch file is a program made up of
DOS
commands.
hen
it is executed, the commands are pro
cessed by the
command processor, one after another, as if
they
were
entered
from the keyboard. This is handy when
you
have
a
long
series of commands to enter repeatedly. By
convention,
batch
files are given the extension " BAT " .
hen
you
want
to execute programe, all you have to do is
enter
the
filename
of the load module for that program. For
example,
to
execute
the program stored in the file FARKLE
FXE.
enter
"FARKLE " .
Besides internal and external DOS commands, you can in
struct
DOS to execute two kinds of programe.
\
Load
moudle is a programe written in a computer language
ihat
is
ready
to be executed. By convention, a file that con-
tarns a
load
module, is given the extension " EXE " .
For each external command, there is one file, called a COM
MAND FILE, that contains the programe to interpret that
command.
Command file have the extension " COM " , for
example, the FORMAT command is interpreted by a pro
grame that is stored in a file called Format.com .
hen you enter an internal command, the command pro
cessor interprets it directly.
hen you enter an external
command, the command processor executes the programe in
the corresponding command file.