EasyManua.ls Logo

Commodore PC 10 - How to Create an Autoexec_Bat File

Commodore PC 10
494 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
[-
How
to
Create an Autoexec.bat File
There
are
many things you
can
do
with
an autoexec.
bat
file
to
help
you use MS-DOS
more
efficiently. For instance, you will
prob-
ably
want
to
set
tbe
time
and
date,
your
path,
and
any
other
options
that you plan
to
use
on
a regular basis.
If, for example, you
want
to
automatically load GW-BASIC
and
run
a
program
called
menu
each
time
you start MS-DOS,
you
could
create
an
autoexec.
bat
file as follows:
m
Type
the
following
command
and
then
press RETURN:
copy
con
auloexec.bat
This
command
tells MS·DOS
to
copy
what
you type from
the
keyboard into
the
autoexec.
bat
file.
Note
that
you
must
put
the
autoexec.
bat
file in
the
root
directory
of
your
MS-DOS disk.
[ID
Now
type
the
following lines:
date
time
path=c:\;c:\bin;a:\
prompt
[$pl
cIs
gwbasic
menu
rn
After
the
last line, press CONTROL·Z
and
press RETURN
to
copy
these
lines into
the
autoexec.bat file.
[!)
The
menu
program will
now
run
automatically
whenever
you
start
MS· DOS.
Once
your
autoexec.
bat
file is
set
up
as above,
it
will
perform
the
following actions
when
you
start MS-DOS: it will ask you
to
enter
the
date
and
time; it will
set
your
command
search path;
and
it
will
set
your
prompt
to
display
the
default drive
and
directory.
Finally,
the
autoexec.bat file will clear
the
screen
and tell MS-DOS
to
load GW-BASIC and
run
the
menu
program.
To
run
your
own
GW-BASIC program,
type
its
name
in place
of
menu
in
the
exam-
ple. In addition
to
GW-BASIC programs, you
can
also
put
any MS·DOS
command
or
series
of
commands
in
the
autoexec.
bat
file.
Batch Processing
1051
Creating
an
autoexec.bat file

Table of Contents

Related product manuals