home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG004.ARC
/
CATM1.DQC
/
CATM1.DOC
Wrap
Text File
|
1979-12-31
|
11KB
|
297 lines
CATM.DOC by D.DUNFORD & R. PREECE.
CATM.COM is the merging of Ward Christensen's catalogue system into a MENU
driven program. This gives the user an environment in which all catalogue
housekeeping chores can be carried out with ease.
In particular the files ...
CAT.COM - Displays the contents of MAST.CAT (CATALOGUE)
NEWCAT.COM - Catalogues disks using the MAST.CAT file
... make up the core of the progam.
NOTE :- NEWCAT.COM is a merging of FMAP.COM and UCAT.COM which were Ward's
original update programs. Unfortunately the author of NEWCAT.COM is unknown
to us so we are unable to acknowledge him/her here.
To make CATM.COM independent we have added 7 new features:
CREATE MAST.CAT -Creates MAST.CAT in the desired format.
(IGNORE) A FILE -Adds or Deletes Ignored Filenames to MAST.CAT.
LABEL A DISK -Adds or Deletes disk Labels.
DELETE A DISK -Deletes an entire disk's entries from MAST.CAT.
DISPLAY MAST.CAT -Displays the contents of MAST.CAT optionally on the
printer or screen.
CP/M DIRECTORY -CP/M disk directory of any specified drive.
DELETE A FILE -Delete disk files from within CATM.
These are explained in more detail below.
The system is still compatible with the existing system so relabelling of
disks or updating of the MAST.CAT file will not be necessary for those of
you already set up.
==============================================================
MAST.CAT - the master catalogue file.
The catalogue system uses the MAST.CAT file as it's catalogue. This file
can initially be created by the CATM program using menu option '0'. As
stated earlier, the previous versions of this catalogue system uses the
same format for the MAST.CAT file and is completely compatible. The format
for MAST.CAT is described here....
First is a list (in UPPER CASE !!) of names of files to be ignored by the
cataloguing process. This list is enclosed in parentheses and each name in
the list is separated from the others by the bytes 0DH,0AH e.g.
(ASM.COM
DDT.COM
LOAD.COM
PIP.COM
SID.COM
STAT.COM
SUBMIT.COM)
NOTE :- If no names are included in this list CATM.COM still requires the
two parentheses to operate, i.e. ().
The rest of the file is dedicated to a list of catalogued files, with their
relevant disk's label (separated by a comma),
i.e. FILENAME.TYP,DISKLBL.NUM
e.g. ALLOC.COM,SYSRES.802
These entries are separated from each other by the bytes 0AH,0DH.
==============================================================
USING CATM.COM
The functions of CATM.COM are treated here in menu sequence.
The menu looks like this :-
<<<< CATALOGUE MENU >>>>
CR-Escape ^X-Menu ^C-Exit
0 - Create MAST.CAT 4 - Delete a Disk
1 - (Ignore) a file 5 - Display MAST.CAT
2 - Label a Disk 6 - CPM / DIRectory
3 - Catalogue a Disk 7 - DELETE a file
-
Any of the functions may be invoked at the '-' prompt level simply by typing
the appropriate number.
==============================================================
0 = CREATE MAST.CAT
Create a master catalogue file MAST.CAT containing a set of closed
parentheses '()'. This is the required format of the MAST.CAT file. From
this point on MAST.CAT is assumed to be in the 'A:' drive.
SAMPLE RUN
-0 ;Type '0' at menu mode
MAST.CAT Created ;Message from CATM.
- ;CATM then returns to menu selection mode.
==============================================================
1 = (IGNORE) A FILE.
Prints the list of filenames which are to be excluded from the catalogue,
then allows the user to update the list by either adding or deleting
filenames. NB: All names must be in UPPERCASE !!
SAMPLE RUN
-1 ;Type 1 at menu mode.
(IGNORE FILES when cataloguing) ;1st time through no filenames exist.
Filename.typ ;CATM prompts for input
XDIR.COM ;Filename input. A <CR> at this point will cause CATM
; to return to menu mode.
A-Add D-Delete ;CATM'S prompt.
A ;Adds (XDIR.COM) to the list.
- ;CATM returns to menu mode.
Now any cataloguing of disks will ignore the file 'XDIR.COM'. If an entry
for this file exists in MAST.CAT already, it will be deleted when the
relevant disk is updated.
==============================================================
2 = LABEL A DISK.
Allows creation or deletion of a disk label for a disk in any of the
currently active drives. The labels are of the form ...
-DISKLBL.NUM
... where DISKLBL is a 7 character label of the disk, and
NUM is 3 characters describing the disk.
These labels are actually files containing 0 kb. These cannot be created
easily under CP/M 3 on the Os-Ex, since there is no 'SAVE 0 ufn.typ' command
as with CP/M 2.2. The "-" is added by CATM, so the user need only consider
the label text. Note that labels may be created in UPPER or lower case.
SAMPLE RUN
-2 ;type 2 at menu prompt.
D:Disklbl.Num ;CATM prompts for input.
B:TEST.001 ;User input. A <CR> at this point will cause CATM to
; return to menu mode.
A-Add D-Delete ;CATM asks if the label is to be added or deleted.
A ;The answer here is 'A' for add.
- ;The label '-TEST.001' is now added to the disk in the
; 'B' drive and CATM returns to menu mode.
==============================================================
3 = CATALOGUE A DISK.
Adapted from NEWCAT.COM; processes the directory area of a disk and from
this, updates the list of filenames in MAST.CAT. Any new files will be
added, any erased files will be deleted, and files in the (ignore) list will
be ignored. A special entry is kept indicating the amount of free space
left on the disk. When an update is completed CATM informs the user of the
number of entries in MAST.CAT and prompts for further updates.
SAMPLE RUN
-3 ;type 3 at menu mode.
Drive for DISK TO BE CATALOGUED : B
Drive for CATALOGUE SYSTEM DISK : A
;CATM asks for the drives to be used during this update.
;Here the 'A' & 'B' are inputs.
Place the DISK TO BE CATALOGUED in drive B: Press <RET>
Place the CATALOGUE SYSTEM DISK in drive A: Press <RET>
DEL: +++20k.FRE ;CATM informs the user of any changes
ADD: +++25k.FRE ;since the last update.
ADD: GRAPH.COM
DEL: G.MAC
MAST.CAT now has 215 files.
Another disk to catalogue (Y/N) N
-
CATM shows the disk now contains an extra 5k of free space and that 1 file
has been added to the disk while another has been erased.
The 'N' at the last prompt returns CATM to menu mode.
==============================================================
4 = DELETE A DISK.
Allows the user to delete all catalogue entries for a particular disk.
Useful when disks get old or damaged and are no longer servicable.
The update is done in one operation.
SAMPLE RUN
-4
Disklbl.Num ;CATM prompts for the disk
CPM--22.008 ;The disk is CPM--22.008
DEL: +++24k.FRE
DEL: ASM.COM ;CATM informs the user of deletions made
DEL: COPY.COM
DEL: COPYSYS.COM
DEL: DDT.COM
DEL: DIR.COM
DEL: DUMP.COM
DEL: LOAD.COM
DEL: FORMAT.COM
DEL: SUBMIT.COM
DEL: XDIR.COM
MAST.CAT now has 240 files.
- ;CATM returns to main menu.
At this point any entry associated with the disk 'CPM--22.008' has been
deleted.
==============================================================
5 = DISPLAY MAST.CAT
Adapted from CAT.COM, displays the contents of MAST.CAT to either the screen
or the printer. It will accept ambiguous filerefs or disk labels and can be
used to display according to either files or disks. Scrolling stops when
the screen is full and the user is prompted to continue. Comments may also
be added and are included in the page heading.
SAMPLE RUN
-5
Printer or Screen ? P/S S ;Input Prompt. Answer S for sceen output.
? and * Wildcards *.* = All Filename.Typ
Disklbl.Num COMMENTS ;Input Prompts.
WS.COM *.* as at 10/03/80
;here the user is asking for all references to WS.COM on any disk and
;putting the date in the page heading.
FILES :- WS.COM *.* as at 10/03/80
NAME DISK NAME DISK
WS .COM WS-DOC1.001 WS .COM WS-TXT1.004
WS .COM WS-TXT2.005 WS .COM WS-TXT3.017
- ;in this case 4 entries for WS.COM exist, so CATM returns to menu mode.
SUMMARY OF COMMANDS FOR OPTION 4.
At the prompt in option 4 the user may specify exactly the type of listing
required:-
<CR> - escapes to menu mode.
SPACE <CR> - lists the entire catalog.
*.* - lists the entire catalog.
*.* WORK.* - lists all files on any "WORK" disk.
*.* *.002 - lists all entries for disk .002.
*.ASM - lists entries for all .ASM files
A*.* - lists all files starting with an 'A'
*.* *.??1 - lists all files on disks with serial numbers xx1.
*.BAS WORK.* - lists all '.BAS' files found on any 'WORK' disk.
==============================================================
6 = CP/M DIRECTORY
A standard CP/M directory, handy when updating disk labels or cataloguing.
Allows any active drive to be specified.
SAMPLE RUN
-6 ;type 7 at menu prompt.
Which Drive ? B ;CATM asks for the drive.
-CATMWK .001 | CATM .DOC | KEYS .COM | SCRMBL .COM
CATM .BAK | CATM .MAC | KEYS .MAC | XDIR .COM
CATM .COM | CPM3 .SYS | TXTL .COM |
- ;the directory for drive B: is given and CATM then returns to menu mode.
==============================================================
7 = DELETE A FILE
Enables the user to delete files from a disk in any active drive, without
going to CP/M level. Ideal for erasing .BAK files before cataloguing the
disk.
SAMPLE RUN
-7 ;type 7 at menu prompt.
D:FILENAME.TYP ;Prompt for input.
B:XDIR.COM ;Delete XDIR.COM from B:
;<CR> will ret to menu mode.
- ;CATM returns to menu mode.
;<CR> will ret to menu mode.
-