home *** CD-ROM | disk | FTP | other *** search
-
-
- ###### #####
- # # # # ## #####
- # # # # # #
- # # # # # #
- # # # ###### #
- # # # # # # #
- ###### ##### # # #
-
-
-
-
- You can get part of the following documentation by invoking the program with
- the switches -v, -h, or -H . See README.TXT for more information.
-
- ----------------------------------- -v ------------------------------------
- DCAT v1.0 -- Disk Cataloger
- Copr (c) 1993 Richard Breuer. DCAT is freeware. No warranties.
-
- This is DCAT v1.0 (from RUTILS 4).
-
- Author: Richard Breuer
- Brunssumstrasse 6
- 5100 Aachen
- (after Jul 1, 1993: 52074 Aachen)
- Germany
- Europe
-
- Phone: +49/241/85605
- Fax: +49/241/8021329
-
- Email: ricki@pool.informatik.rwth-aachen.de (Preferred!)
-
- ----------------------------------- -h ------------------------------------
- DCAT v1.0 -- Disk Cataloger
- Copr (c) 1993 Richard Breuer. DCAT is freeware. No warranties.
-
- Usage: DCAT [-acf:hHnqv*] command [parameter]
-
- Commands (default d: is A:):
- Add/Update [d:] Read the diskette in drive d: and update the catalog
- Cat/Volumes [vol] Display a list of all catalogued diskettes named vol*
- Dir/List [vol] List all diskettes with a label vol*
- Find str Find *str* in Filenames or comments (case insensitive)
- Multi [d:] Do a multiple "DCAT Add", asking for disk changes
- Remove vol Remove all diskettes with label vol* from the catalog
- Sum Some statistics
-
- Options (default is -fC:\RUTILS\NEWUTILS\DCAT.DAT):
- -a Find/Dir give as much info as possible (instead of a nice format)
- -c Check all files for archive comments, regardless of extensions
- -f<catf> Use catf as catalog file
- -h,-H Display a help screen (-h: this) (-H: notes and examples)
- -n Don't extract comments from archive files or DESCRIPT.ION
- -q Be quiet. Supress informative messages
- -v Display version info and information about the author
- -* Display internal information (for debugging purposes)
-
- ----------------------------------- -H ------------------------------------
- DCAT v1.0 -- Disk Cataloger
- Copr (c) 1993 Richard Breuer. DCAT is freeware. No warranties.
-
- Notes:
- The output is always directed to stdout. Each diskette which shall be
- cataloged, must have a label. DCAT automagically extracts comments from
- some archive files (currently ARJ, ZIP, ZOO). Besides, it scans 4DOS
- DESCRIPT.ION files. The errorlevel is set to 1 if help has been displayed.
- It is set to 255 in case of an error and 0 on normal completion. The
- commands may be abbreviated, as long as they are not ambiguous. 'Remove' may
- not be abbreviated. Only drives A: and B: are supported. The maximum number
- of files per disk is 512.
-
- Examples:
- DCAT Add
- Add A: to the catalog.
- DCAT dir uTiL
- Show all diskettes whose label starts with UTIL, ie. UTIL1, UTILITIES...
- DCAT Multi B:
- Add several disks to the catalog, starting with drive B:. You may inter-
- actively change the drive whenever the disk must be changed.
- DCAT CAT a
- List all diskettes which names begin with 'A'.
-
- -------------------------------------------------------------------------------
- Additional information:
- -----------------------
- It was Jari Kokko (jkokko@snakemail.hut.fi) who inspired me to write DCAT.
- He sent me his public domain FLOP program, which has a similar commands. I
- used his ideas of an ASCII catalog file and a command driven interface and
- rewrote the program from scratch, mainly for these reasons:
-
- - it was fun
- - I extended the catalog file format by the following data:
- disk size, used bytes on a disk, free bytes, number of files,
- file size, file date, file attributes, archive file comments
- - I was able to use my basic programming layer containing the
- user interface modules, so that DCAT behaves like every other
- RUTILS program
- - I extended the program by the archive file comment extraction
- and the DESCRIPT.ION file scanning (thanks to Jouni Miettunen
- (jon@stekt.oulu.fi) for the latter suggestion)
-
-
- Comment extraction:
- -------------------
- DCAT has the ability to find comments for files which are catalogued. It
- can handle two different comment types:
-
- - Some archive formats allow so-called "archive file comments", as
- there are ZIP, ZOO, and ARJ archives (others are currently not
- supported - if you got information on how to extract comments from
- other file types, feel free to contact me). DCAT reads these files
- and tries to extract the archive file comment, unless the -n option
- is given. If this is successful, the comment is stored in the
- catalog file and can be used to DCAT FIND strings.
-
- - Another possibility for file comments is the 4DOS DESCRIPT.ION file,
- which is (optionally) created in a directory and contains information
- about all the files in it. If DCAT locates such a file on a diskette
- directory, it reads it and assigns the comments contained in it to
- the files. NOTE, that the DESCRIPT.ION comments OVERRIDE the archive
- file comments (since they are definitly placed there on purpose
- whereas the archive file comments may be put there by someone else).
-
-
- Using more than one catalog file:
- ---------------------------------
- There are two ways of using different catalog files. The first is to use
- the -f option to specify it (this should be clear).
-
- The second way is based on the fact that DCAT always uses the catalog file
- which (1) stands on the same directory as DCAT.EXE and (2) has the same file
- name as the executable, ie. DCAT by default. Now consider the following: You
- rename C:\BIN\DCAT.EXE (which uses the catalog file C:\BIN\DCAT.DAT) to, say,
- D:\SYS\CATALOG.EXE. The 'new' executable does now expect its catalog file
- to be D:\SYS\CATALOG.DAT. Therefore C:\BIN\DCAT.DAT should be renamed in the
- appropriate way, ie. to D:\SYS\CATALOG.DAT.
-
- The consequences of this be behaviour are the following
-
- - <name>.EXE and <name>.DAT do always belong together (which I
- find is a nice feature)
- - You can use several catalog files by duplicating DCAT.EXE to eg.
- DCUTIL.EXE, DCGAMES.EXE, and DCMISC.EXE, which will then use
- the catalog files DCUTIL.DAT, DCGAMES.DAT, and DCMISC.DAT
- respectively
- - If you doubt which catalog file is used if you invoke DCAT, simply
- call DCAT SUM, which tells you the name
-
-
- Trouble shooting:
- -----------------
- - DCAT creates temporary files for certain commands. If you interrupt
- it, eg. with CTRL/C, these files may remain on your harddisk. You
- should delete them. They are named xxxxxxxx.TMP, where x are randomly
- chosen decimal digits.
-
- - If you want to find out which catalog file is currently used by the
- EXE file you start, type DCAT SUM, and you will see.
-
-
- An example session:
- -------------------
- The following example session will show you DCATs features. We assume that
- you have not used DCAT before. In this case you start without having a
- catalog file. We assume further that you have 2 diskettes, one 5,25"
- diskette for disk drive A:, and one 3,5" disk for drive B: (That's my
- current configuration, BTW). We want to catalog two diskettes, which have
- labels 'MISC 003' and 'UTILS 001':
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Add A:
- The catalog C:\RUTILS\NEWUTILS\DCAT.DAT does not exist!
- Ok to create a new catalog file ? [Yes No!] Yep
- Scanning Disk a: Volume: MISC 003 Free/Size: 1062400/1213952
- a:\PACKED2.ZIP >Another bunch of small utilities
- a:\CH\EC\KI\TO\UT\DIFF.EXE
- a:\CH\EC\KI\TO\UT\TEST.ARJ >This is an exmample for an ARJ comment
-
- Total: 3 Files with 148299 Bytes.
-
- Updating catalog file C:\RUTILS\NEWUTILS\DCAT.DAT Done.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- The first disk is catalogued. You see that DCAT has asked whether to create
- a new catalog file C:\RUTILS\NEWUTILS\DCAT.DAT, because it was the first
- time you used DCAT.
-
- After a status line 'Scanning Disk...' each file on the disk is listed,
- together with its comment, if there's one available.
-
- Cataloging the second disk will display:
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Add B:
- Scanning Disk B: Volume: UTILS 001 Free/Size: 1073152/1457664
- B:\PACKED.ZIP >This package contains several utilities
- B:\UTILS.ZIP >Package with some small utilities
- B:\UTILS2.ZIP >Package with some larger utilities
- B:\DC\DC.EXE
- B:\DC\DC.DAT
- B:\DC\OLD\DC.EXE
-
- Total: 6 Files with 381225 Bytes.
-
- Updating catalog file C:\RUTILS\NEWUTILS\DCAT.DAT Done.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Now, that both diskettes are cataloged, we take a look at the information
- commands of DCAT. There are three of them: Dir, Cat, and Sum. They produce
- the following output:
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Dir
- Searching catalog file C:\RUTILS\NEWUTILS\DCAT.DAT
-
- ===============================================================================
- Volume MISC 003 03/18/1993 1062400 free 148299 used 1213952 size
- ===============================================================================
- Name Date Size Attr Comment
- -------------------------------------------------------------------------------
- PACKED2.ZIP 03/18/1993 32098 a--- Another bunch of small utilities
- DIFF.EXE 10/07/1992 93063 a---
- TEST.ARJ 03/18/1993 23138 a--- This is an exmample for an ARJ comment
-
- ===============================================================================
- Volume UTILS 001 03/18/1993 1073152 free 381225 used 1457664 size
- ===============================================================================
- Name Date Size Attr Comment
- -------------------------------------------------------------------------------
- PACKED.ZIP 03/18/1993 96673 a--- This package contains several utilitie
- UTILS.ZIP 03/18/1993 2676 a--- Package with some small utilities
- UTILS2.ZIP 03/18/1993 52294 a--- Package with some larger utilities
- DC.EXE 03/14/1993 31786 a---
- DC.DAT 03/17/1993 166091 a---
- DC.EXE 02/23/1993 31705 a---
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Cat
- Searching catalog file C:\RUTILS\NEWUTILS\DCAT.DAT
-
- ===============================================================================
- Volume Date Files Free Used Size Waste
- -------------------------------------------------------------------------------
- MISC 003 03/18/1993 3 1062400 148299 1213952 0.27%
- UTILS 001 03/18/1993 6 1073152 381225 1457664 0.23%
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Sum
- Scanning catalog file C:\RUTILS\NEWUTILS\DCAT.DAT
-
- The catalog contains 11 files on 2 diskettes.
- This means an average of 5.50 files per volume.
- The number of files per volume varies from 3 to 6.
- The maximum waste is 0.27%.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- If you take a closer look at the Dir output you will notice that the paths
- are not listed, only the filenames. This is done to preserve the nice
- layout. DCATs -a switch will display the full information, but the layout
- is spoiled. $ mark lines which extend the 79 character boundary:
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Dir -a
- Searching catalog file C:\RUTILS\NEWUTILS\DCAT.DAT
-
- ===============================================================================
- Volume MISC 003 03/18/1993 1062400 free 148299 used 1213952 size
- ===============================================================================
- Name... Date Size Attr Comment...
- -------------------------------------------------------------------------------
- PACKED2.ZIP 03/18/1993 32098 a--- Another bunch of small utilities
- CH\EC\KI\TO\UT\DIFF.EXE 10/07/1992 93063 a---
- CH\EC\KI\TO\UT\TEST.ARJ 03/18/1993 23138 a--- This is an exmample for an$
-
- ===============================================================================
- Volume UTILS 001 03/18/1993 1073152 free 381225 used 1457664 size
- ===============================================================================
- Name... Date Size Attr Comment...
- -------------------------------------------------------------------------------
- PACKED.ZIP 03/18/1993 96673 a--- This package contains several utiliti$
- UTILS.ZIP 03/18/1993 2676 a--- Package with some small utilities
- UTILS2.ZIP 03/18/1993 52294 a--- Package with some larger utilities
- DC\DC.EXE 03/14/1993 31786 a---
- DC\DC.DAT 03/17/1993 166091 a---
- DC\OLD\DC.EXE 02/23/1993 31705 a---
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- DCAT has a Find command to retrieve all information about a certain string.
- The string will be located anywhere in the path or the file comment. Upper
- or lower case do not matter.
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Find util
- Searching catalog file C:\RUTILS\NEWUTILS\DCAT.DAT
-
- ===============================================================================
- Name Volume Comment
- -------------------------------------------------------------------------------
- PACKED2.ZIP MISC 003 Another bunch of small utilities
- PACKED.ZIP UTILS 001 This package contains several utilities
- UTILS.ZIP UTILS 001 Package with some small utilities
- UTILS2.ZIP UTILS 001 Package with some larger utilities
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Finally here is an example for the Multi command. We simply catalog our two
- diskettes once more, overwriting the old entries. Note that we answer the
- first 'Another disk' question with the key 'b' or 'B'.
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:> DCAT Multi
- Scanning Disk A: Volume: MISC 003 Free/Size: 1062400/1213952
- A:\PACKED2.ZIP >Another bunch of small utilities
- A:\CH\EC\KI\TO\UT\DIFF.EXE
- A:\CH\EC\KI\TO\UT\TEST.ARJ >This is an exmample for an ARJ comment
-
- Total: 3 Files with 148299 Bytes.
-
- Updating catalog file C:\RUTILS\NEWUTILS\DCAT.DAT Done.
-
- Another disk [Yes! No Quit A: B:] Yep (Drive B:)
-
- Scanning Disk B: Volume: UTILS 001 Free/Size: 1073152/1457664
- B:\PACKED.ZIP >This package contains several utilities
- B:\UTILS.ZIP >Package with some small utilities
- B:\UTILS2.ZIP >Package with some larger utilities
- B:\DC\DC.EXE
- B:\DC\DC.DAT
- B:\DC\OLD\DC.EXE
-
- Total: 6 Files with 381225 Bytes.
-
- Updating catalog file C:\RUTILS\NEWUTILS\DCAT.DAT Done.
-
- Another disk [Yes! No Quit A: B:] Nope
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-