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
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
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
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
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� 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.
: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
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
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
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
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.
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