Overview of the Named Directory Concept
Creating Named Directory Files with MKDIR
Disk-Based and Memory-Based Named Directories
Loading Named Directory Files with LD
Printing Named Directory Files and Buffers with PWD
Moving About with CD
Poor Little ECHO and CD
System Directories
Sample Sessions
:Overview of the Named Directory Concept

    Th� Name� Director�� Concep� unde� ZCPR�� i� � logica� �
associatio� o� � mnemoni� nam� wit� � directory�� whic� i� � dis� �
an� use� area��  Wit� thi� facility�� th� use� i� permitte� t� �
refe� t� an� director� b� � mnemoni� name�� an� thi� greatl� �
improve� th� use� interfac� ove� havin� t� remembe� dis� letter� �
and numbers.

    Fo� instance�� a� environmen� ca� b� se� u� i� whic� th� �
following name assignments are made:

         A15: = ROOT         A0:  = BASE
         B0:  = BBASE        B1:  = JEFF
         B2:  = ROBERT       B3:  = LINDA

    Wit� th� name� director�� facilit�� enabled��� th� ZCPR� �
utilitie� ca� refe� t� thes� directorie� b� eithe� th� DU�� for� �
(disk and user number) or by the name:

         XDIR ROOT: = XDIR A15:
    Mos� o� th� ZCPR� utilitie� recogniz� name� directorie� i� �
th� facilit� i� enabled�� and�� sinc� thes� utilitie� functio� t� �
provid� interface� betwee� th� directories�� the� creat� � goo� �
workin� environmen� fo� us� o� th� conventiona� CP/� utilitie� a� �
well��  I� othe� words�� th� ZCPR� utilitie� whic� ca� dea� wit� �
name� directorie� ar� th� onl� utilitie� wit� whic� on� shoul� �
cros� director�� boundarie� i� � ZCPR� syste� an� conventiona� �
utilities� lik� a� edito� o� a� assembler� shoul� b� use� i� onl� �
on� director� an� dea� wit� file� i� th� curren� director� an� o� �
drive A in the same user number (A$ in the vernacular).

    Fo� instance� t� edi� � fil� i� th� ZCP� director� wit� Wor� �
Master�� cop�� th� fil� int� � workin� director� whic� ha� th� �
WM.HLР fil� i� A�� i� th� sam� use� are� an� edi� there��  The� �
copy it back when done:
         B1>mcopy b1:=zcpr:file.txt
              ...
         B1>wm file.txt
              ...
         B1>mcopy zcpr:=file.txt

    Man�� commercia� programs�� lik� Wor� Maste� an� Wor� Star� �
ar� alread�� programme� t� loo� o� A�� i� the� d� no� fin� th� �
overla�� the� nee� i� th� curren� directory��  Wor� Master�� fo� �
instance�� ha� � WM.HL� fil� whic� provide� onlin� documentation� �
an� b� workin� o� driv� B�� i� th� sam� use� tha� � WM.HLРfil� �
exist� o� A:� i� � use� ask� fo� Help� Wor� Maste� wil� fin� it.

    Name� Directories�� then�� ca� provid� � mor� human-oriente� �
workin� environment��  Th� use� nee� n� longe� remembe� tha� hi� �
command� ar� i� director� A15� -- h� nee� onl� remembe� tha� ROO� �
contain� hi� commands�� HEL� contain� hi� hel� files�� ROBER� i� �
hi� nam� an� tha� i� wher� h� place� th� file� h� i� workin� on� �
BDS� i� wher� hi� � compile� is� etc.


    Name� Directorie� ar� supporte� b� th� ZCPR� utilitie� an� �
no� b� ZCPR� itself�  Fou� utilitie� ar� specificall� designe� t� �
dea� wit� Name� Directories�� an� th� res� o� th� utilitie� ca� �
acces� Name� Directorie� manipulate� b� th� firs� fou� an� us� �
them.

    Th� fou� ZCPR� utilitie� whic� dea� directl�� wit� Name� �
Directories are:

         MKDIR -- create a Named Directory
         LD    -- load a Named Directory into a Named Dir Buffer
         PWD   -- print Working Directory and optionally all
                   available Named Directories
         CD    -- log into a Named Directory

:Creating Named Directory Files with MKDIR

    MKDIҠ i� use� t� creat� Name� Director� Files�� whic� ar� �
file� o� dis� whic� contai� th� mnemoni� name� an� th� disk/use� �
area� the� ar� associate� with��  I� essence� MKDI� i� a� editor�  �
I� provide� � scratc� are� i� whic� th� use� ca� se� u� � name� �
directory�� revie� it�� edi� it�� an� mak� an� change� h� wishes�  �
Whe� satisfied�� th� use� ca� writ� i� ou� t� dis� a� � fil� o� �
abort and throw it away.

    MKDIR is invoked with one of three forms:

         MKDIR //                      <-- Print Help
         MKDIR                         <-- Interactive Mode
         MKDIR dir:filename.typ        <-- Read File First
                                            and Interactive Mode

    Th� DIR�� for� i� allowe� i� al� fil� specification� t� �
MKDIR� s� th� use� ca� prefi� � fil� wit� � director� nam� o� th� �
DU�� form��  MKDI� wil� searc� alon� th� command-searc� pat� fo� �
the indicated file.

    Onc� th� use� i� i� MKDIR� h� i� prompte� with:

         MKDIR Command (? for Help)?

an䠠 h� ma�� issu� th� followin� single-characte� command� �
(striking RETURN is not necessary):

         C -- Change Directory (Add, Rename, or Delete Entries)
         I -- Initialize Directory
         P -- Print Directory
         R -- Read in a Directory File
         S -- Status of MKDIR Environment
         W -- Write out a Directory File
         X -- Exit
         ? -- Print Help Message

    I� al� case� excep� W�� th� scratc� environmen� withi� MKDI� �
i� affected�  N� file� ar� affecte� unti� th� use� tell� MKDI� t� �
write the Directory File on disk.

    Th� à comman� (Chang� Directory� i� use� t� edi� th� �
content� o� th� scratc� environmen� withi� MKDIR��  Onc� invoked� �
the user is prompted with

         Directory Entry (?<RETURN> for Help)?

    Th� use� i� i� a� inpu� lin� edito� now�� s� al� command� �
mus� b� terminate� b� strikin� th� RETUR� ke� befor� the�� tak� �
effect�  Thi� i� th� BDO� inpu� lin� editor� an� strikin� ^� wil� �
abort to ZCPR2.

    Th� use� ma� typ� �� followe� b� strikin� RETUR� t� fin� ou� �
what his options are (again, built-in help).


    Unde� th� � comman� (Chang� Directory)� th� use� ca� perfor� �
the following functions:

         . Add a Named Directory Entry to the Directory
         . Rename a Named Directory Entry in the Directory
         . Delete a Named Directory Entry from the Directory
         . Print the Directory
         . Print a Help Message
         . Exit to MKDIR Command Level

    I� orde� t� ad� o� renam� � Name� Director� Entry�� th� use� �
type� th� "DU:dirname� form��  I� eithe� th� Dis� (D� o� Use� (U� �
ar� omitted� curren� dis� an� use� ar� assumed�  Th� "dirname� i� �
th� mnemoni� nam� associate� wit� th� directory�� u� t� � �
character� long��  I� � nam� ha� bee� associate� wit� th� �
indicate� dis� an� use� already�� MKDI� wil� renam� i� t� th� ne� �
nam� an� tel� yo� tha� i� i� doin� s� an� wha� th� ol� nam� was�  �
I� � nam� ha� no� alread� bee� associate� wit� th� indicate� dis� �
and user, MKDIR will add this entry to the directory.

    I� orde� t� delet� � Name� Director� Entry�� th� use� type� �
onl� th� "DU:� form��  I� � nam� ha� alread� bee� associate� wit� �
thi� dis� an� user� the� i� wil� b� deleted�  I� n� nam� ha� bee� �
associated, the user will be so informed.

    T� prin� th� curren� director� fo� review�� th� use� nee� �
onl� strik� th� RETUR� key�  T� exit� th� use� enter� a� � (uppe� �
or lower case) followed by striking the RETURN key.


    Example:

         Assume the following directory:

              A15:ROOT       A10:SYS        A0:BASE
              B0:DEVBASE     B1:WORK1       B2:WORK2

         If the user wishes to delete WORK1, he types

              B1:

         If the user wishes to rename WORK2 to WORK12, he types

              B2:WORK12

         If the user wishes to add WORK3 as B3:, he types

              B3:WORK3

    I� al� cases�� lower-cas� character� ar� converte� t� upper-�
case.


    Getting on with the commands, they are:

         C -- Change Directory (Add, Rename, or Delete Entries)
         I -- Initialize Directory
         P -- Print Directory
         R -- Read in a Directory File
         S -- Status of MKDIR Environment
         W -- Write out a Directory File
         X -- Exit
         ? -- Print Help Message

    C has just been discussed and ? is obvious.

    � i� use� t� initializ� th� directory�  Th� use� i� aske� i� �
h� i� sur� h� want� t� d� this�� and�� i� Yes�� MKDI� clear� th� �
scratc� directory��  ɠ emphasiz� tha� onl�� th� memory-base� �
scratc� director� o� MKDI� i� effected�� an� MKDI� affect� dis� �
files only with the W (Write Directory) command.

    Р i� use� t� Prin� th� Directory��  Asid� fro� th� name� �
assigne� s� far�� th� use� i� tol� ho� man� entrie� hav� bee� �
defined so far and how many are yet to be defined.

    � i� use� t� rea� i� � Director� Fil� an� � i� use� t� writ� �
i� out��  Whe� MKDI� i� firs� invoked�� i� th� comman� i� simpl� �
"MKDIR"�� the� th� defaul� director�� fil� i� define� t� b� �
NAMES.DIR��  I� th� comman� i� "MKDI� dir:filename.typ"� the� th� �
defaul� director� fil� i� define� t� b� th� indicate� fil� an� i� �
i� rea� i� immediatel� (subsequen� � comman� i� no� necessary)�  �
When the user issues the R command, he will be prompted with:

         Name of File (<RETURN> = filename.typ)?

I� h� strike� RETURN�� th� defaul� fil� i� read��  Otherwise�� h� �
ca� typ� i� � fil� nam� o� hi� choice��  N� defaul� fil� typ� i� �
assumed� s� th� fil� ma� b� an� name�  Th� sam� promp� appear� t� �
th� נ (Write� command��  I� bot� cases�� i� th� use� wishe� t� �
ente� hi� ow� fil� name� i� ma� b� o� th� for� "dir:filename.typ� �
s� h� ca� rea� i� fro� o� plac� i� anywhere.

    On� note��  נ wil� writ� bac� t� th� curren� director�� a� �
oppose� t� th� director� th� fil� originall� cam� fro� i� th� �
defaul� for� i� accepted.

    Finally�� th� � comman� (Status� i� kin� o� redundant��  I� �
simply tells the user some status information on MKDIR.

:Disk-Based and Memory-Based Named Directories

    Th� onl�� purpos� o� L� i� t� loa� � Name� Director�� Fil� �
fro� disk�� conver� i� int� th� prope� for� fo� memory-base� use� �
an� stor� i� i� th� memory-base� Name� Director�� Buffe� a� �
implemente� fo� ZCPR2��  Th� reaso� fo� th� memory-base� Name� �
Director�� Buffe� i� t� spee� processin� whe� Name� Directorie� �
ar� referenced��  Ver�� simply�� al� th� ZCPR�� utilitie� whic� �
suppor� Name� Directorie� perfor� th� followin� operation� whe� �
one is referenced:

         1��  The� sca� th� memory-base� Name� Director�� Buffe� �
fo� � matc� t� th� user-supplie� nam� an� us� thi� definitio� fo� �
the name if found.

         2��  I� � memory-base� Name� Director� Buffe� i� no� �
availabl� o� th� user-supplie� nam� i� no� found�� the� sca� th� �
disks�� searchin� alon� th� comman� searc� pat� fo� th� fil� �
NAMES.DIR�  I� found� the� loa� it� sca� i� fo� th� user-supplie� �
name� an� us� thi� definition�  I� no� found� the� issu� a� erro� �
message.

    I call the reader's attention to two main points here:

         1��  I� th� user-supplie� nam� i� foun� i� th� memory-�
base� Name� Director� Buffer�� the� � dis� acces� i� no� neede� �
an� th� utilit� run� faste� sinc� i� doe� no� hav� t� d� � dis� �
search.

         2��  I� � dis� searc� i� done�� i� i� don� alon� th� �
comman� searc� pat� an� th� firs� NAMES.DI� fil� encountere� i� �
used�  I� thi� way� a� differen� Name� Director� structur� may be�
create� fo� wha� th� use� sa� befor� whe� h� wa� logge� int� �
another directory.  To illustrate, consider the following:


         The memory-based Named Directory Buffer contains:

              A0:BASE        A15:ROOT       A16:HELP

         Th� NAMES.DI� fil� foun� fro� director� WORK� contains:

              B1:WORKBASE    B2:HOME        B3:TEST1

an� th� NAMES.DI� fil� foun� fro� director� WORK� contains:

              B1:WBASE       B2:MYHOME      B4:TEST2

    � use� logge� int� WORK� canno� acces� director� TEST2�� an� �
� use� logge� int� WORK� canno� acces� director� TEST1��  Also� � �
use� i� WORK� an� � use� i� WORK� ca� bot� acces� B� an� B2�� bu� �
the� d� s� b� differen� names�  Al� user� ca� acces� A0� A15� an� �
A16, and they do it by the same names.


    � conventio� � lik� t� us� o� m� system� bu� on� whic� i� b� �
n� mean� required�� i� t� nam� th� director� containin� al� o� m� �
command� a� ROOT� an� � lik� t� kee� i� u� ou� o� th� wa� a� A15�  �
B� bein� i� A15�� � ca� lo� int� i� whe� � kno� th� command� wil� �
come from it and I want them to run as quickly as possible.

    Anothe� conventio� � lik� t� us� i� t� plac� al� th� HL� �
file� (fo� th� onlin� documentatio� system� u� i� A16��  Thi� �
director�� canno� b� logge� into�� bu� � don'� wan� t� sinc� n� �
command� resid� there�  Th� HEL� progra� ca� b� mad� t� fin� the� �
easil�� sinc� i� ca� b� se� u� t� eithe� sca� th� comman� searc� �
pat� an� the� sca� it� ow� interna� path�� whic� � hav� endin� i� �
A16, or I can set up HELP to just scan its internal path.

:Loading Named Directory Files with LD

    L� (Loa� Directory� load� th� Name� Director� Fil� NAMES.DI� �
o� th� fil� specifie� i� th� comman� lin� int� th� memory-�
residen� Name� Director� Buffer��  L� automaticall�� scan� th� �
command search path for the desired directory.

    LD is invoked by one of the following forms:

         LD //                    <-- Print Help
         LD                       <-- Print Load Stats
         LD filename              <-- Load filename.DIR
         LD filename.typ          <-- Load filename.typ

    Not� tha� � d� NO� permi� � DIR�� o� DU�� prefi� o� th� fil� �
name��  Th� fil� t� b� loade� ha� t� b� foun� alon� th� comman� �
searc� path��  � di� thi� t� mak� L� a� smal� a� possibl� an� ru� �
as quickly as possible.

:Printing Named Directory Files and Buffers with PWD

    PWD (Print Working Directory) is used for two functions:

         1.  To print the name of the directory you currently
              reside in

         2.  To print the names of all directories you can
              access from where you are

    PWD is invoked by the following forms:

         PWD //                   <-- Print Help
         PWD                      <-- Print Current Directory
         PWD DIR                  <-- Print Directory Info

:Moving About with CD

    CĠ (Chang� Directory� i� use� t� mov� fro� on� director� t� �
anothe� b� usin� th� name� associate� wit� th� directories��  C� �
is invoked by one of the forms: �
         CD //               <-- Print Help
         CD dir or CD dir:   <-- Log into Directory

    Whe� C� executes� i� determine� th� dis� an� use� associate� �
t� th� nam� b� th� standar� ZCPR� technique:

         1��  CĠ scan� th� memory-base� Name� Director�� Buffe� �
fo� � matc� t� th� user-supplie� nam� an� use� thi� definitio� �
fo� th� nam� i� found.

         2��  I� � memory-base� Name� Director� Buffe� i� no� �
availabl� o� th� user-supplie� nam� i� no� found�� the� C� scan� �
th� disks�� searchin� alon� th� comman� searc� pat� fo� th� fil� �
NAMES.DIR�  I� found� C� load� it� scan� i� fo� th� user-supplie� �
name� an� use� thi� definition�  I� no� found� C� issue� a� erro� �
message.

    Onc� C� identifie� th� director� t� lo� into�� i� check� t� �
se� i� i� i� � Syste� Director� (use� numbe� greate� tha� 1�� -- �
se� later� an� ask� fo� � passwor� i� so�  I� a� invali� passwor� �
is given, CD drops the user back into his original directory.

    I� CĠ decide� t� giv� th� use� acces� t� th� director� �
(vali� passwor� i� give� fo� � Syste� Director� o� i� i� no� � �
Syste� Directory)� the� C� log� int� th� directory� check� t� se� �
i� th� fil� ST.CO� exists� an� chain� t� i� i� i� doe� (usin� th� �
Multipl� Comman� Lin� Buffer)��  Thi� latte� actio� i� no� take� �
if the Multiple Command Line Buffer is not available.

    ST.CO͠ i� simpl� � cop� o� STARTUP.CO� unde� th� nam� ST�  �
Th� onl� purpos� o� STARTU� i� t� loa� th� Multipl� Comman� Lin� �
Buffe� wit� � comman� lin� whe� i� i� execute� withou� an� �
options��  Thi� comman� lin� ma� contai� � reasonabl� numbe� o� �
commands
which perform any desired set of functions.


    I� th� ZCPR� environment�� goo� candidat� command� t� b� �
executed by running ST via CD include the following:

         LD dirname     <-- Set up a new Memory-Based Named
                             Directory Environment
         PAT� path-ex�  <-- Se� u� � ne� Comman� Searc� Path
         MENU           <-- Invoke the MENU Preprocessor
         ECHO message   <-- Print a Message to the User

    Hence�� th� user'� environmen� ca� chang� drasticall�� b� �
usin� CĠ t� lo� int� � ne�� directory��  Th� name� o� th� �
directorie� h� ca� acces� ca� chang� (L� change� th� Memory-Base� �
name� an� � ne� NAMES.DI� fil� alon� hi� comman� searc� pat� �
change� th� Disk-Base� names)�� th� comman� searc� pat� h� use� �
ca� change�� an� h� ca� eve� fin� himsel� i� � MENՠ environmen� �
instea� o� � ZCPR� comman� environment.

:Poor Little ECHO and CD

    ECH� i� � rathe� trivia� progra� -- i� simpl� echo� th� tex� �
following it.  It has only one form:

         ECHO text

an� i� print� "text� o� th� consol� whe� i� executes�  Wh� hav� � �
program like this?  The answer is with CD and ST.

    CD�� a� � mentione� earlier�� automaticall� invoke� S� i� i� �
find� i� i� th� director� i� log� into��  ECH� i� provide� a� on� �
o� th� command� S� coul� execute�  I� thi� mode� th� comman� lin� �
containin� th� ECH� comman� wil� no� b� printe� t� th� user�� bu� �
th� tex� printe� b� ECH� will��  Hence�� ECH� ca� b� use� t� giv� �
the user one-line messages upon entering a new directory.

    I� th� use� i� t� receiv� mor� tha� on� line�� the� � fil� �
ca� b� create� somewher� whic� contain� th� tex� o� th� message� �
an� TYP� ca� b� use� t� prin� th� fil� o� th� console�  Not� tha� �
TYPE permits the DU: form, so the file can be anywhere.
:System Directories

    Ther堠 exist� � clas� o� directorie� calle䠠 Syste� �
Directorie� unde� ZCPR2�  Thes� ar� directorie� whos� use� numbe� �
i� 1� o� greate� (thi� ma� b� change� fo� eac� installatio� b� �
using GENINS).

    I� yo�� issu� th� comman� "PWĠ DIR�� fro� � non-Syste� �
directory� PW� ma� tel� yo� tha� som� directorie� ar� hidden�  I� �
wil� no� displa�� th� name� o� th� Syste� Directorie� t� yo� �
unless you reside in a System Directory.

    Syste� Directorie� ar� fo� privelege� users��  I� th� DU� �
for� fo� switchin� betwee� directorie� i� no� available� th� onl� �
wa� t� switc� betwee� directorie� i� b� mean� o� th� CĠ command�  �
CD�� whe� i� realize� tha� yo� hav� give� th� nam� o� � Syste� ��Directory�� ask� yo� fo� � password��  Yo� mus� correctl�� ente� �
thi� passwor� befor� C� wil� allo� yo�� t� ente� th� Syste� �
Directory.


    Hence�� tw� level� o� protectio� ar� afforde� t� � syste� b� �
disablin� th� DU� for� an� usin� name� directories�  Th� firs� i� �
tha� � non-privelege� use� canno� fin� ou� wha� th� name� o� th� �
Syste� Directorie� ar� b� usin� PW� (i� i� u� t� th� Syste� �
Manage� t� insur� tha� n� othe� too� i� availabl� t� th� non-�
privelege� use� t� allo� hi� t� fin� ou� thi� information)��  Th� �
secon� i� that�� eve� i� th� non-privelege� use� foun� ou� wha� �
th� name� o� th� Syste� Directorie� are�� h� stil� need� � �
password to enter them.

:Sample Sessions

    Th� followin� frame� ar� sample� o� actua� termina� session� �
whic� illustrat� severa� o� th� point� discusse� i� thi� HEL� �
file��  � hav� place� comments�� preceede� b� <<� ou� t� th� sid� �
t� hel� yo� alon� i� you� readin� o� th� session� an� t� poin� �
out key features I am trying to illustrate.


B7>mkdir
MKDIR  Version 1.2
MKDIR Command (? for Help)? ?           << Print Help
MKDIR Commands are --
       C -- Change Directory (Add/Rename/Delete Entries)
       I -- Initialize Directory
       P -- Print Directory
       R -- Read Directory File
       S -- Status of MKDIR Environment
       W -- Write Directory File
       X -- Exit Program

MKDIR Command (? for Help)? R           << Read in File
Name of File (<RETURN> = NAMES   .DIR)?      << Default from Path


MKDIR Command (? for Help)? P           << Print Directory
Disk A --
    0: R-BASE       1: R-ASM        2: R-BDSC       3: R-PAS
    5: R-BASIC      7: R-WS         8: R-CAT        9: R-DBASE
   10: SYS         11: ZCPR        15: ROOT        16: HELP
Disk B --
    0: DEV-BASE     1: ASM          2: BDSC         3: PAS
    4: SCRATCH      5: BASIC        7: WS           8: CAT
    9: DBASE
Disk C --
    0: BACKUP
22 Entries in Directory


MKDIR Command (? for Help)? S           << Status
** MKDIR Status **

22 Entries in Directory
42 Empty Entries Remaining

Working File Name: NAMES   .DIR

No Changes made to Directory since Startup
File has been loaded


MKDIR Command (? for Help)? C           << Enter Change Mode
** MKDIR Change Mode **
Directory Entry (?<RETURN> for Help)? ? << Print Help

MKDIR Change Mode --
       You may issue the following commands at this point:

               DU:dirname      <-- Create/Rename Dir Entry
               DU:             <-- Delete Dir Entry
               <RETURN>        <-- Print Directory
               X               <-- Exit
               ?               <-- Print this Help


Directory Entry (?<RETURN> fo Help)? b1:          << Delete
       Deleting ASM      --  21 Entries Remaining
Directory Entry (?<RETURN> for Help)? c2:newdir   << Add/Rename
       Adding NEWDIR   --  22 Entries in Directory, Room for  42 More
Directory Entry (?<RETURN> for Help)? b2:
       Deleting BDSC     --  21 Entries Remaining
Directory Entry (?<RETURN> for Help)? b3:
       Deleting PAS      --  20 Entries Remaining
Directory Entry (?<RETURN> for Help)? b1:mydir
       Adding MYDIR    --  21 Entries in Directory, Room for  43 More
Directory Entry (?<RETURN> for Help)? b0:d-base
       Renaming DEV-BASE --  21 Entries in Directory, Room for  43 More


Directory Entry (?<RETURN> for Help)?             << Print Dir
Disk A --
    0: R-BASE       1: R-ASM        2: R-BDSC       3: R-PAS
    5: R-BASIC      7: R-WS         8: R-CAT        9: R-DBASE
   10: SYS         11: ZCPR        15: ROOT        16: HELP
Disk B --
    0: D-BASE       1: MYDIR        4: SCRATCH      5: BASIC
    7: WS           8: CAT          9: DBASE
Disk C --
    0: BACKUP       2: NEWDIR
21 Entries in Directory
Directory Entry (?<RETURN> for Help)? x      << Exit
MKDI� Comman� (� fo� Help)� �                <� Writ� to Disk
Name of File (<RETURN> = NAMES   .DIR)? temp.dir  << New File
Writing Directory to Disk ... Done


MKDIR Command (? for Help)? I                << Init Dir
       Are you sure you want to Initialize the Directory (Y/N/<CR>=N)? Y

MKDIR Command (? for Help)? P                << Print New Dir
Empty Directory
MKDIR Command (? for Help)? C                << Enter Names
** MKDIR Change Mode **
Directory Entry (?<RETURN> for Help)? a15:root
       Adding ROOT     --   1 Entries in Directory, Room for  63 More
Drectory Entry (?<RETURN> for Help)? a0:base
       Adding BASE     --   2 Entries in Directory, Room for  62 More
Directory Entry (?<RETURN> for Help)? b1:work1
       Adding WORK1    --   3 Entries in Directory, Room for  61 More
Directory Entry (?<RETURN> for Help)? b2:work2
       Adding WORK2    --   4 Entries in Directory, Room for  60 More
Directory Entry (?<RETURN> for Help)? b3:work3
       Adding WORK3    --   5 Entries in Directory, Room for  59 More


Directory Entry (?<RETURN> for Help)?        << Print Dir
Disk A --
    0: BASE        15: ROOT
Disk B --
    1: WORK1        2: WORK2        3: WORK3
 5 Entries in Directory
Directory Entry (?<RETURN> for Help)? b0:workbase
       Adding WORKBASE --   6 Entries in Directory, Room for  58 More
Directory Entry (?<RETURN> for Help)? x      << Exit
MKDIR Command (? for Help)? P                << Print Again
Disk A --
    0: BASE        15: ROOT
Disk B --
    0: WORKBASE     1: WORK1        2: WORK2        3: WORK3
 6 Entries in Directory
MKDIR Command (? for Hep)? W                 << Write to Disk
Name of File (<RETURN> = TEMP    .DIR)? temp2.dir << New File
Writing Directory to Disk ... Done


MKDIR Command (? for Help)? R           << Read in File
Name of File (<RETURN> = TEMP2   .DIR)? temp.dir
MKDIR Command (? for Help)? P           << Look at it
Disk A --
    0: R-BASE       1: R-ASM        2: R-BDSC       3: R-PAS
    5: R-BASIC      7: R-WS         8: R-CAT        9: R-DBASE
   10: SYS         11: ZCPR        15: ROOT        16: HELP
Disk B --
    0: D-BASE       1: MYDIR        4: SCRATCH      5: BASIC
    7: WS           8: CAT          9: DBASE
Disk C --
    0: BACKUP       2: NEWDIR
21 Entries in Directory


MKDIR Command (? for Help)? R           << Read in Another
Name of File (<RETURN> = TEMP    .DIR)? temp2.dir
MKDIR Command (? for Help)? P           << Look at it
Disk A --
    0: BASE        15: ROOT
Disk B --
    0: WORKBASE     1: WORK1        2: WORK2        3: WORK3
 6 Entries in Directory
MKDIR Command (? for Help)? X           << Exit

<� � hav� no� create� � ne� directories� TEMP.DI� an� TEMP2.DIR


B7>mkdir temp2.dir                 << MKDIR and Read File
MKDIR  Version 1.2
MKDIR Command (? for Help)? P      << Print
Disk A --
    0: BASE        15: ROOT
Dik B --
    0: WORKBASE     1: WORK1        2: WORK2        3: WORK3
 6 Entries in Directory
MKDIR Command (? for Help)? C      << Change
** MKDIR Change Mode **
Directory Entry (?<RETURN> for Help)? a4:help
       Adding HELP     --   7 Entries in Directory, Room for  57 More
Directory Entry (?<RETURN> for Help)? x
MKDIR Command (? for Help)? R      << Read in file and throw away
Name of File (<RETURN> = TEMP2   .DIR)?      <<  ... changes


MKDIR Command (? for Help)? C      << Change this file instead
** MKDIR Change Mode **
Directory Entry (?<RETURN> for Help)? a16:help
       Adding HELP     --   7 Entries in Directory, Room for  57 More
Directory Entry (?<RETURN> for Help)?
Disk A --
    0: BASE        15: ROOT        16: HELP
Disk B --
    0: WORKBASE     1: WORK1        2: WORK2        3: WORK3
 7 Entries in Directory
Directory Entry (?<RETURN> for Help)? x
MKDIR Command (? for Help)? X      << Exit without saving first

Directory has changed since last Write       << MKDIR caught me
Do you want to write Directory to Disk first (Y/N/<CR>=Y)?Y

Name of File (<RETURN> = TEMP2   .DIR)?      << Save file
Writing Directory to Disk ... Done

B7>dir *.dir
TEMP    .DIR  |  TEMP2   .DIR
B7>pwd //                          << PWD Help
PWD, Version 1.1
       PWD is a ZCPR2 named directory display utility
(PWD=Print Working Directory).  Command Forms are:
               PWD     <-- Print Current Info
               PWD DIR <-- Print Available Directories
               PWD //  <-- Print Help Message

B7>pwd                             << Print Current Dir
PWD, Version 1.1

** Current Directory **
       B 7: WS


B7>pwd dir                         << Print Known Dirs
PWD, Version 1.1

** Directory Display **

       ** Named Directory Memory-Based Definitions **
 3 Directory Entries Total (  2 Directories Hidden) --
A --
  0: BASE

Strike Any Key to Continue -

       ** Named Directory  Disk-Based  Definitions **
22 Directory Entries Total (  4 Directories Hidden) --
A --
  0: R-BASE     1: R-ASM      2: R-BDSC     3: R-PAS
  5: R-BASIC    7: R-WS       8: R-CAT      9: R-DBASE


B --
  0: DEV-BASE   1: ASM        2: BDSC       3: PAS
  4: SCRATCH    5: BASIC      7: WS         8: CAT
  9: DBASE
C --
 0: BACKUP

** Current Directory **
       B 7: WS
B7>10:                   << Enter System Dir to see all
B10>pwd dir              << Now look at dirs
PWD, Version 1.1

** Directory Display **


       ** Named Directory Memory-Based Definitions **
 3 Directory Entries Total (  0 Directories Hidden) --
A --
  0: BASE      15: ROOT      16: HELP

Strike Any Key to Continue -

       ** Named Directory  Disk-Based  Definitions **
22 Directory Entries Total (  0 Directories Hidden) --
A --
  0: R-BASE     1: R-ASM      2: R-BDSC     3: R-PAS
  5: R-BASIC    7: R-WS       8: R-CAT      9: R-DBASE
 10: SYS       11: ZCPR      15: ROOT      16: HELP
B --
  0: DEV-BASE   1: ASM        2: BDSC       3: PAS
  4: SCRATCH    5: BASIC      7: WS         8: CAT
  9: DBASE
C --
  0: BACKUP

** Current Directory **
       Noname
B10>ld //                << LD Help
LD  Version 1.1
       LD is the Load Directory program for ZCPR2.
The functions of LD are to load the memory-resident
named directory uffer from the specified or implied
disk file and to display the contents of the named
directory buffer.

       The forms of the LD command are --

               LD              <-- Display Loaded Directory
               LD filename     <-- Load filename.DIR
               LD filename.typ <-- Load filename.typ
               LD //           <-- Print this Help Message


B10>ld                   << Print Status
LD  Version 1.1
**********************************************
** Memory-Based Named Directory Definitions **
** Number of Entries Permitted:  50         **
** Number of Entries Loaded:   3            **
**********************************************
       -- Named Directory Display --
A --
 0: BASE     15: ROOT     16: HELP

** Current Directory **
       Not Named in Directory Buffer
B10>ld ld                << Load a Directory (LD.DIR)
LD  Version 1.1
Load Complete


B10>pwd dir              << Print new environ
PWD, Version 1.1

** Diectory Display **

       ** Named Directory Memory-Based Definitions **
13 Directory Entries Total (  0 Directories Hidden) --
A --
  0: BASE      10: SYS       11: ZCPR      15: ROOT
B --
  0: DEV-BASE   1: ASM        2: BDSC       3: PAS
  5: BASIC      7: WS         8: CAT        9: DBASE
C --
  0: BACKUP

Strike Any Key to Continue -


       ** Named Directory  Disk-Based  Definitions **
22 Directory Entries Total (  0 Directories Hidden) --
A --
  0: R-BASE     1: R-ASM      2: R-BDSC     3: R-PAS
  5: R-BASIC    7: R-WS       8: R-CAT      9: R-DBASE
 10: SYS       11: ZCPR      15: ROOT      16: HELP
B --
  0: DEV-BASE   1: ASM        2: BDSC       3: PAS
  4: SCRATCH    5: BASIC      7: WS         8: CAT
  9: DBASE
C --
  0: BACKUP

** Current Directory **
       Noname


B10>7:;pwd dir           << Print same environ from non-Sys user
PWD, Version 1.1

** Directory Display **

       ** Named Directory Memory-Based Definitions **
3 Directory Entries Total (  3 Directories Hidden) --
A --
  0: BASE
B --
  0: DEV-BASE   1: ASM        2: BDSC       3: PAS
  5: BASIC      7: WS         8: CAT        9: DBASE
C --
  0: BACKUP

Strike Any Key to Continue -


       ** Named Directory  Disk-Based  Definitions **
22 Directory Entries Total (  4 Directories Hidden) --
A --
  0: R-BASE     1: R-ASM      2: R-BDSC     3: R-PAS
  5: R-BASIC    7: R-WS       8: R-CAT      9: R-DBASE
B --
  0: DEV-BASE  1: ASM        2: BDSC       3: PAS
  4: SCRATCH    5: BASIC      7: WS         8: CAT
  9: DBASE
C --
  0: BACKUP

** Current Directory **
       B 7: WS


B7>ld temp2;pwd dir           << Load one of my new environs
LD  Version 1.1
Load Complete
PWD, Version 1.1

** Directory Display **

       ** Named Directory Memory-Based Definitions **
 7 Directory Entries Total (  2 Directories Hidden) --
A --
  0: BASE
B --
  0: WORKBASE   1: WORK1      2: WORK2      3: WORK3

Strike Any Key to Coninue -


       ** Named Directory  Disk-Based  Definitions **
22 Directory Entries Total (  4 Directories Hidden) --
A --
  0: R-BASE     1: R-ASM
 2: R-BDSC     3: R-PAS
  5: R-BASIC    7: R-WS       8: R-CAT      9: R-DBASE
B --
  0: DEV-BASE   1: ASM        2: BDSC       3: PAS
  4: SCRATCH    5: BASIC      7: WS         8: CAT
  9: DBASE
C --
  0: BACKUP

** Current Directory **
       B 7: WS


B7>ld ld                 << Load Standard Environ
LD  Version 1.1
Load Complete
B7>cd cat                << CD into CAT Directory
CD Version 2.3

MENU  Version 1.4        << MENU automatically comes up!


                       Disk Cataloging System

Catalog Update Functions --
       1 - Update Disks on C: into a Temporary File
       2 - Update the Disk on C: into the Archival Disk File
       3 - Update the Disk on C: into the Active Disk File

Merge the Temporary File into --
       4 - The Archival Disk File              5 - The Active Disk File

Backup --
       6 - The Archival Disk File              7 - The Active Disk File

Scan --
       A- The Archival Disk Catalog            B - The Active Disk Catalog


Miscellaneous Functions --
       D - Delete the TEMP and BAK Files       T - Display the Date and Time
       X - Display Disk Directory              Z - Issue Any ZCPR2 Command

Command (<CR>=Menu, ^C=ZCPR2) - A       << Scan Catalog
Input Files and Disks -- mkdir.mac...............................
CATALOG II  Version 5.3
Catalog File:         MASTER  .CAT
++ SCAN Catalog Function ++
Date of Last Write/Merge:  15 Jan 83

CATALOG File Name: MASTER  .CAT   Date/Comment: 15 Jan 83
Filename.Typ   Diskname.Dsk   Diskname.Dsk   Diskname.Dsk   Disname.Dsk
MKDIR   .MAC   BACK015 .J01   C&ASM   .J06   SRC015  .J00
++ SCAN Function Complete ++
MENU  Version 1.4 Strike Any Key -           << Give user time


                       Disk Cataloging System

Catalog Update Functions --
       1 - Update Disks on C: into a Temporary File
       2 - Update the Disk on C: into the Archival Disk File
       3 - Update the Disk on C: into the Active Disk File

Merge the Temporary File into --
       4 - The Archival Disk File              5 - The Active Disk File

Backp --
       6 - The Archival Disk File              7 - The Active Disk File

Scan --
       A - The Archival Disk Catalog           B - The Active Disk Catalog


Miscellaneous Functions --
       D - Delete the TEMP and BAK Files       T - Display the Date and Time
       X - Display Disk Directory              Z - Issue Any ZCPR2 Command

Command (<CR>=Menu, ^C=ZCPR2) - Z       << Enter Command Line
Input Command -- cd ws...................................
CD, Version 2.3                    << Return to Dir WS
MENU  Version 1.4                  << MENU tries, but none there

B7>                 << At Command Level Again