home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpmhelp
/
stat.hlp
< prev
next >
Wrap
Text File
|
1994-07-27
|
4KB
|
108 lines
:STAT COMMAND
The STAT Command takes any of the following forms --
STA╘ Calculatσ thσ storagσ remaininτ oε al∞ activσ drive≤ anΣ prin⌠á ß ì
message like
x: R/W, SPACE: nnnK -- if disk is Read/Write
x: R/O, SPACE: nnnK -- if disk is Read Only
STAT x: Calculate the storage remaining on the specified drive and print
BYTES REMAINING ON x: nnnK
~
STAT x:afn [$S]
Scaε thσ specifieΣ file≤ oε thσ specifieΣ drivσ (x║ i≤ optional)¼ ì
anΣá lis⌠á al∞ file≤ whicΦ satisf∙ thσ unambiguou≤á referencσá iε ì
alphabetica∞á orde≥ witΦ storagσ requirements«á ┴ tablσ likσ thσ ì
following is generated --
Size Recs Bytes Ext Acc
sssss rrrr nnnk ee a/b d:pppppppp.sss
where
sssss -- number of virtual 128-byte records in file
This field is display if the optional $S is given
rrrr -- number of 128-byte records in each extent of the file
nnnK -- number of bytes (in K, K=1024) allocated to the file
ee -- number of 16K extensions
a/b -- access mode of file; R/O or R/W
d:pppppppp.sss -- drive name (d may be A, B, C, D) and file
name
~
STAT x:=R/O
Se⌠ thσ specifieΣ drivσ t∩ ReaΣ Only«á Thi≤ i≤ cleareΣ b∙ ß warφ ì
boot. When a disk is Read Only, the message
BDOS ERR ON x: READ ONLY
will appear if there is an attempt to write to it.
STAT VAL:
Summarize the status commands. STAT VAL: will print the list --
Temp R/O Disk: d:=R/O
Set Indicator: d:filename.typ $R/O $R/W $SYS $DIR
Disk Status : DSK: d:DSK:
User Status : USR:
Iobyte Assign:
CON: = TTY: CRT: BAT: UC1:
RDR: = TTY: PTR: UR1: UR2:
PUN: = TTY: PTP: UP1: UP2:
LST: = TTY: CRT: LPT: UL1:
~
STAT DEV:
Displa∙á thσá curren⌠ logica∞ t∩ physica∞á devicσá mapping«á Fo≥ ì
example, the list may appear as --
CON: = CRT: PUN: = PTP:
RDR: = UR1: LST: = TTY:
STAT d:afn [$R/O or $R/W or $SYS or $DIR]
Se⌠á thσá variou≤á permanen⌠á filσá indicators«áá R/O=Read/Only¼ ì
R/W=Read/Write, SYS=System, DIR=Non-System
STAT ld1=pd1, ld2=pd2, ...
Changσá thσá logica∞á t∩ physica∞á devicσá assignments«á Logica∞ ì
devicσ ld▒ i≤ assigneΣ t∩ physica∞ devicσ pd1¼á etc«á Thσá valiΣ ì
logical device names are --
CON: The system console device
RDR: The paper tape reader device
PUN: The paper tape punch device
LST: The output list device
~
The valid physical device names are --
TTY: Slow speed output device (teletype)
CRT: High speed output device (cathode ray tube)
BAT║ BatcΦ processinτ (CON║ inpu⌠ i≤ RDR:¼á CON║ outpu⌠ ì
is LST:)
UC1: User-defined console
PTR: Paper tape reader
PTP: Paper tape punch
UR1: User-defined reader #1
UR2: User-defined reader #2
UP1: User-defined punch #1
UP2: User-defined punch #2
LPT: Line printer
UL1: User-defined list device #1
~
STAT d:DSK:
Lis⌠á thσ characteristic≤ oµ thσ disδ nameΣ "d:"╗á iµ "d:ó i≤ no⌠ ì
specified, list the characteristics of all active disks. A sample listing:
d: Drive Characteristics
65536: 128 Byte Record Capacity
8192: Kilobyte Drive Capacity
128: 32 Byte Directory Entries
0: Checked Directory Entries
1024: Records/ Extent
128: Records/ Block
58: Sectors/ Track
2: Reserved Tracks
STAT USR:
Lis⌠á thσá Use≥á Numbe≥ thσ use≥ i≤ currentl∙á iεá anΣá thσá Use≥ ì
Number≤á whicΦá havσá file≤á oε thσ currentl∙á addresseΣá disk«á ┴á samplσ ì
listing:
Active User : 0
Active Files: 0 1 3