Date : Wed, 28 Mar 1984 06:47:03-MST
From : Rick Conn <RCONN@SIMTEL20.ARPA>
Subject: ZCPR3 Intro - Message 2: Directories
ZCPR3 - Directories
Under ZCPR3, a logical disk can be thought of
to contain two types of directories. One is the
physical directory, which is usually located just
after the system tracks on most floppies. The
other is the logical directory, in which each file
on a disk has a user number associated with it
(from 0 to 31), and the combination of a disk and
user number identifies uniquely the logical
directory in which the file belongs. DDT.COM may
be located on disk A, user 5, while two copies of
ED.COM may be located on disk A, user 5 and disk A,
user 0. The combination of the disk reference and
user number identifies the logical directory which
a file belongs in.
Under ZCPR3, the logical directory is usually
indicated as part of the prompt. In the examples
below, the reader can see the logical directory
referred to by its disk and user number and, in
most cases, by a name associated with the disk and
user number. The following examples illustrate the
use of the DU (disk/user) form and the DIR
(directory name) form to log into various user
areas and directories.
A0:BASE>15:
A15:ROOT>4:
A4>b:
B4:WORK4>0:
B0:WORK1>a14:
A14>a0:
A0:BASE>root:
A15:ROOT>work2:
Additionally, commands may use either the DU
or DIR form to reference the logical directories
they are to act upon. Interpretation of the name
of a directory is built into the ZCPR3 command
processor itself, so every command can work with
the DU and DIR forms with equal ease.
It should be noted that commands, like WS or
DBASE, which don't know about the DU or DIR forms
will usually just pay attention to the disk
referenced and not the user number. For commands
like these, it is usually best to just employ the
disk letter when referring to their arguments.
B1:WORK2>dir base:
RHEX .COM 2
A0:BASE -- 1 Files Using 2K ( 206K Left)
B1:WORK2>base:
The PWD command under ZCPR3 displays the
names and associated DU forms of all directories
which currently have names assigned to them.
Additionally, when using the DIR form to log into a
directory (see PRIVATE below), a directory so named
may have a password associated with it. If so, the
user is prompted for this password and the command
will fail if he does not provide the correct
password.
A0:BASE>pwd
PWD, Version 1.0
DU : DIR Name DU : DIR Name DU : DIR Name DU : DIR Name
---- -------- ---- -------- ---- -------- ---- --------
A 0: BASE A 1: PRIVATE A 15: ROOT
B 0: WORK1 B 1: WORK2 B 2: WORK3 B 4: WORK4
B 5: TEXT B 6: MAIL
A0:BASE>private:
PW? unknown
A0:BASE>private:
PW? mypass
A1:PRIVATE>dir
A1:PRIVATE -- 0 Files Using 0K ( 206K Left)
A1:PRIVATE>base:
A0:BASE>dir private:
PW? mypass
A1:PRIVATE -- 0 Files Using 0K ( 206K Left)
A0:BASE>dir a1:
A1:PRIVATE -- 0 Files Using 0K ( 206K Left)