System information
Transient commands are specified in the same manner as built-in commands, and additional
commands are easily defined by the user. For convenience, the transient command can be
preceded by a drive name which causes the transient to be loaded from the specified drive into
the TPA for execution. Thus, the command
B:STAT
causes CP/M to temporarily log in drive B for the source of the STAT transient, and then return
to the original logged disk for subsequent processing.
1.6.1 STAT Command
Syntax:
STAT
STAT "command line"
The STAT command provides general statistical information about file storage and device
assignment. Special forms of the command line allow the current device assignment to be
examined and altered. The various command lines that can be specified are shown with an
explanation of each form to the right.
STAT If you type an empty command line, the STAT transient calculates the storage
remaining on all active drives, and prints one of the following messages:
d: R/W, SPACE: nnnK
d: R/O, SPACE: nnnK
for each active drive d:, where R/W indicates the drive can be read or written, and
R/O indicates the drive is Read-Only (a drive becomes R/O by explicitly setting it
to Read-Only, as shown below, or by inadvertently changing disks without
performing a warm start). The space remaining on the disk in drive d: is
given in kilobytes by nnn.
STAT d: If a drive name is given, then the drive is selected before the storage is computed.
Thus, the command STAT B: could be issued while logged into drive A, resulting
in the message
BYTES REMAINING ON B: nnnK
1.6 Transient Commands CP/M Operating System Manual
1-15