home *** CD-ROM | disk | FTP | other *** search
- Introduction
- ============
-
- PIBCAT.COM is a disk-cataloguing program. It lists all files in all
- subdirectories on a given disk, and also lists the entries in .ARC and
- .LBR files. You may indicate a match criterion for files, and you may
- suppress the .ARC/.LBR expansion listing.
-
-
- Restrictions on use
- ===================
-
- None. However, I ask that you give me credit if you use any part of
- this code in developing other software, and I STRONGLY urge you to
- release the source code for such projects so all of us can benefit.
- If you make any nifty changes or enhancements to PibCat itself, PLEASE
- upload the changes so all of us can profit by them.
-
-
- Usage
- =====
-
- PIBCAT v /f=filespec /i=indent /m=margin /o=filename /p=pagesize /x /n
-
- v volume (drive letter) to catalog
- (default is current drive)
- If given as ?, this text is displayed.
-
- | /e=filespec DOS file spec to match for entries contained
- | in .ARC/.LBR files (default is *.* -- list
- | all .ARC/.LBR entries).
-
- /f=filespec DOS file spec to match when listing
- (default is *.* -- list all files)
-
- /i=indent # columns to space for .ARC/.LBR entries
- (default is 0)
-
- /m=margin left margin to leave (default is 0)
-
- | /n expand .ARC/.LBR file contents after displaying
- | subdirectory contents rather than immediately
- | following the .LBR/.ARC file name.
- | (default is to list contents immediately.)
-
- /o=filename write catalog listing to file "filename"
- (default is "CATALOG.LIS")
-
- /p=pagesize paginate listing using "pagesize" lines
- (default is no pagination)
-
- /x don't list .ARC/.LBR file contents
- (default is to list .ARC/.LBR contents)
-
-
- Aborting
- ========
-
- Hit <CTRL>Break to abort catalog listing.
-
-
- Output
- ======
-
- For each selected file, the file name, size in bytes, and time
- and date of creation are displayed. The files are displayed in
- sorted order by name. All subdirectories of each directory
- are searched and listed automatically. By default, a non-paginated
- listing is written to CATALOG.LIS. Use /p= to get a paginated
- listing (each page has a page number and is separated from the
- previous page by an Ascii form-feed character (^L) ).
-
- The same file name, size, and time/date information is presented
- for members of .ARC or .LBR files. The file names within .ARC or
- .LBR files are NOT sorted. However, most .ARC files are created
- with names in sorted order anyway.
-
- For .LBR files, the time and date of the last update for each member,
- not the original creation time and date, are displayed. Some .LBR
- files do not record creation or update times, and in that case, the
- time/date fields are not displayed.
-
-
- System requirements
- ===================
-
- IBM PC or compatible under MS DOS or PC DOS v2.0 or higher with
- at least 128K of RAM.
-
-
- Examples
- ========
-
- To get abbreviated help:
-
- PIBCAT ?
-
- To catalog the currently logged disk:
-
- PIBCAT
-
- To catalog disk C:
-
- PIBCAT C
-
- The output goes to file CATALOG.LIS by default. To specify an alternate
- output file called MYDIR.LIS:
-
- PIBCAT C /O=MYDIR.LIS
-
- To select a match criterion:
-
- PIBCAT C /F=*.bat ==> only list .BAT files
- PIBCAT C /F=\bozo ==> only list files in C:\bozo\ and its
- subdirectories
- | PIBCAT /F=*.ARC /E=*.PAS ==> List only .ARC files and any .PAS files
- | contained in those .ARC files
- | PIBCAT /E=*.C?M ==> List all files, but only entries like
- | *.C?M (*.COM, *.CQM, etc.) in .ARC and .LBR
-
- To get a paginated listing:
-
- PIBCAT /P=60 ==> Paginated listing assuming 60 lines per page
- (Form feeds separate pages)
-
- To get the listing indented (perhaps for binding):
-
- PIBCAT /M=10 ==> Indent listing file by 10 columns
-
- To indent the .ARC/.LBR listings further than the directory listings:
-
- PIBCAT /I=5 ==> Indent .ARC/.LBR listings 5 columns further
- to right than directory listings
-
- To prevent .ARC/.LBR contents listing:
-
- PIBCAT /X ==> No expansion of .ARC/.LBR
-
- To get .ARC/.LBR contents listing after displaying the subdirectory
- entries (as in PibCat v1.0):
-
- PIBCAT /N ==> List contents of .ARC/.LBR after all
- file names for a given subdirectory
-
- Of course the various parameters can be used together.
-
-
- Acknowledgments
- ===============
-
- V1.0
- ====
-
- The archive search code is based in part on TPARCV.PAS by Michael Quinlan
- and ARCV.ASM by Vern Buerg. The library search code is based in part upon
- LU.PAS by Steve Freeman. Bob Blacher was very helpful in testing PibCat.
-
- V1.1
- ====
-
- The idea and code for implementing the '/n'-style expansion of .LBR and
- .ARC files was provided by Stephen Falatko. Thank you Stephen! I have
- altered the .ARC/.LBR contents display so that .ARC/.LBR entries stand out
- better when the contents are displayed as part of the main listing.
-
- Dave Seidman pointed out that MS DOS 2.x bugs prevented proper display
- of volume labels. He provided a routine to obtain the correct
- volume label for DOS 2.x versions. (Regrettably, the date and time for
- labels appears inaccessible using any of the standard functions under
- MS DOS 2.x.) I have altered the volume display code to check for the DOS
- version, and use Dave's method for obtaining the volume label under DOS 2.x.
- The date and time for the label are NOT printed under DOS 2.x.
-
- Several people complained that the /f= match criterion didn't extend to
- members of .ARC/.LBR files. I've added the /e= match criterion in response.
-
- -- Phil Burns
- January 30, 1987
-
- V1.2
- ====
-
- Convert to Turbo v4.0. No specification changes. The new version is
- an EXE file, i.e., PIBCAT.EXE.
-
- -- Phil Burns
- September 1, 1987
-
- V1.3
- ====
-
- Minor code revisions to work better with TP4. No specification changes.
-
- -- Phil Burns
- April 27, 1988
-
- V1.4
- ====
-
- Lewis Paper pointed out a couple of bugs in v1.3:
-
- (1) Archives or libraries marked as "read only" could not be
- read.
-
- (2) A formatting bug caused by a bad call to DUPL caused
- occasional system crashes.
-
- My thanks to Lewis for pointing out the problems. These bugs are
- fixed in v1.4.
-
- -- Phil Burns
- May 29, 1988