Normally, files will accessed on
the
default drive only, unless a particular drive is
specified. The command:
SETDEF
*,A:
....
(where * refers to the default drive) instructs
CP/M
(when
it
searches
for
files) to
search firstly on the default drive,
then
on Drive A : .
In
other words,
if
the default
drive is
B :
then
files will be found automatically even
if
they only exist on Drive A : .
The commands:
SET
D E F
[PA
G
EJ
....
and
....
SETDEF
[NOPAGE]
....
turn
on and off
the
automatic pagination of console display.
Remember
that
most of
the
facilities of D E V ICE, SET, and SET D E F particularly
where they refer to drives
(rather
than
files or discs) need to be set up, together with
the date, each time
CP/M
Plus is started. This is a prime application for a suitable
PRO
F I
LE.
SUB
file.
SUB
M I T is required to execute files of individual commands automatically. The
contents of
the
command files are text, and
it
is possible to include input to programs
if
the
first character on those lines
in
the
.
SUB
file is <
The drive size, amount of space, and number of directory entries left on a disc,
together with
the
user areas containing files, and the disc label (if any) may be
displayed by various combinations of
the
S
HOW
command:
SHOW
B:
SHOW
B:[LABELJ
SHOW
B:[USERS]
SHOW
B:[DIR]
SHOW
B:[DRIVEJ
....
all specify statistics from Drive B :
Exit
..
ing
CP/M Plus
AMSDOS
This program relinquishes control from
CP/M
and
returns
to the built-in AMSTRAD
BASIC,
from which
the
AMSDOS disc commands will be available.
Chapter 5 Page
32
AMSDOS
and CP/M