home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
catalog
/
doscat.arc
/
DOSCAT
Wrap
Text File
|
1988-08-07
|
5KB
|
103 lines
From SHARE AND SHARE ALIKE, by Rosalind Federman, in August 1988
issue of "ECHO NOTES," newsletter of the El Paso Micro Users Group.
Copyright El Paso Micro Users Group and Rosalind Federman, 6032
Isabella, El Paso, TX 79912 (915-581-9261)
There are several good file cataloging programs on the shareware
market. As to which is the best, it's a matter of personal
preference and need. However, there are times when I want a quick
and, usually, temporary catalog: to keep track of some new files I'm
testing, to have a record of files I send to a friend, to create a
listing of files when I go to a swap meet, etc. For these purposes I
don't always want to go through the whole process (or want the
complete results) of a regular cataloging program.
Because I don't know how to do even the most primitive programming,
I decided to let DOS help me make a quick and easy inventory of
diskettes and/or files. Since I have a dual floppy system at home,
I'll use A: and B: as examples to explain what I think of as DOSCAT.
1. Put diskette to be cataloged in drive B: and a blank in A:
2. With A: as your current drive, at the A: prompt, type
DIR B: >A:1 <CR>
3. Remove the first diskette from B: and put in a new one.
4. Hit the F3 key. Backspace one space (to delete the 1) and
type in 2. Command at A: will now be
DIR B: >A:2 <CR>
5. Continue this process for all the diskettes you want to catalog.
6. When done, at the A: prompt, type
COPY 1 + 2 + 3 + . . . . <CR>
7. Delete (if you want) all the files except 1--that's now your
catalog.
8. Rename 1 (if you want) to something that will help you
remember what this catalog is, e.g., SWAPDIR.
You now have a simple but complete listing of your diskettes that
can be printed with the DOS PRINT command. Often this listing is
enough. For instance, if you want to make a comparison of files on
this list with another list or if you want to test the files and
make notes about them on the printed listing.
Other times you'll want to take a few more steps in this simple
catalog. Because the the listing was created with DOS, it's in
straight ASCII and can be manipulated in several ways.
A. Do an alphabetic sort of the files. This will, of course,
create a single listing of the files (rather than listed
by disk) so it's a good idea to make a copy of your original
SWAPDIR or specify that the sort output be put into another
file.
B. Pull the sorted list into a text editor or word processor.
You can then delete the extraneous text that DOS puts into
a directory listing or, if you want, you can delete time
and date information. You might even want to have a listing
of just the main program files (.COM, .EXE, .BAS) and
delete the accompanying files (.DAT, .CNF, etc.). You can
add comments by the files--a single line or as many lines
as you want--describing the files, how to execute them,
what restrictions there may be, etc. Finally, you can set
your margins for the printed output that's best for your
purpose.
You can follow this same process and have a ready-made commented
listing if you use one of the utilities that lets you put comments
by a directory listing (DIRNOTES, EXPANDIR, etc.). I try to use
DIRNOTES on every diskette that holds several utilities or small
programs because filenames can be obscure and it's easy to forget
what they are unless they're used frequently.
I haven't used EXPANDIR or any similar utilities, but DIRNOTES
creates a DIRN----.DAT file on the diskette. This data file looks
like a DOS DIR listing but with comments to the right of the
filename and information. If I want to create a quick directory of
diskettes that have DIRN----.DAT on them, I follow the same steps
given above but in step 2 I type
A:> COPY B:DIRN----.DAT A:1
Because DIRNOTES allows only a single-line (per file) commentary in
the DIRN----.DAT file, there's no problem when sorting. If EXPANDIR
or other similar utilities allow longer commentary, some adjustments
will have to be made when sorting or your comments will become
scrambled.
Whether using the DIR command or DIRN---.DAT to create the catalog,
it really takes longer to write and read about the process than to
actually do it. Give it a try with a two or three diskettes and you
may find it as useful as I have.