home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
bbs
/
srtdsc28.zip
/
SORTDESC.DOC
< prev
next >
Wrap
Text File
|
1994-01-02
|
17KB
|
353 lines
SORTDESC
SHAREWARE (C) 1993 Vince Sorensen
All Rights Reserved
Registration - Individual Users $25.00
Commercial Users $CALL
Send to:
Vince Sorensen
6 Armstrong Bay
Regina, Sask. Canada
S4N 4G7
BBS 306-789-8682 or 306-789-8690
Voice 306-789-4654
┌─────────────────────────────────────────────────────────────────────────────┐
│ WHO WANTS IT? │
└─────────────────────────────────────────────────────────────────────────────┘
For BBS operators, CD-ROM publishers, or anyone who wants to have
their files sorted automatically into directories using information in
those files descriptions. The source of file descriptions can be
either the industry standard FILE_ID.DIZ within an archive, a text
file with many file descriptions (for example, a captured on-line
or BBS session), or a README file within an archive.
Options include adding a copy of the description into the archive
if it doesn't already contain a FILE_ID.DIZ, adding a standard text
file to each archive, search for descriptions with or without having
to match the extension (I.E. you downloaded a ZIP file and converted
it to ARJ... the captured BBS listing still says ZIP), remove extended
characters or other phrases from the description (I.E. no more
░'s in the description).
The basic operation of SORTDESC:
Checks a directory for files. For all files found, it checks
to see if they contain a FILE_ID.DIZ. If so, it adds the description
to a text file, in PCBoard format. If not, it checks a text file
(or text files) that contain PCBoard format descriptions (which
may have been captured from a download session, or are from a
CD-ROM/BBS file listing). If a description is found there, it
is added to the description text file, with an updated size field.
If not, a description of "No Description Found" is added to the
description text file, again in PCBoard format. All additions to
the description text file are dated with tomorrow's date.
Optionally, you can add the description that was found, plus
a small message to the archive.
Requirements:
If handling .ARJ files, you need ARJ.EXE. If handling .ZIP files,
you need PKUNZIP.EXE. If handling .LZH programs, you need LHA.EXE.
If handling .SDN files, you need PAK.EXE. Please note that for archives
with ARJ or SDN secured envelopes the archiver programs do not allow you
to alter the archive itself, and SORTDESC does not attempt to get around
their limitation.
┌─────────────────────────────────────────────────────────────────────────────┐
│ COMMAND LINE OPTIONS │
└─────────────────────────────────────────────────────────────────────────────┘
SORTDESC /S - run program interactively (see below) or set-up
the "re-direction" keywords.
SORTDESC - run program in batch mode; SORTDESC.INI
contains the options
SORTDESC I=path - run program in batch mode; SORTDESC.INI
contains the options and is located in the
specified directory (without a trailing \
unless you're specifying the root directory).
Do not specify the name.
SORTDESC I=path [!option1=param1] [!option2=param2] [!option3=param3]...
- run program in batch mode; SORTDESC.INI contains
the options and is located in the directory specified
by the I= parameter (without a trailing \ unless
you're specifying the root directory). !option?
should be one of the valid commands shown below,
and param? should be one of the valid settings.
Any of the commands shown below that may include
a space in the parameter may not be used, nor
may this syntax be combined with the /S switch.
The I=path parameter must be first.
Example of a valid usage:
SORTDESC I=C:\SD !D=C:\PCB\UPLOAD !NODIZ=YES !LIMITS=5
This would use the options specified in
C:\SD\SORTDESC.INI, EXCEPT the directory to be
searched would be C:\PCB\UPLOAD, and it would skip
checking for enclosed FILE_ID.DIZ's.
Example of what not to do:
SORTDESC I=C:\SD !TAGLINE=MyBBSis#1
^ Invalid option
** DON'T FORGET TO SET UP YOUR SORTDESC.INI FILE BEFORE USING BATCH MODE **
┌─────────────────────────────────────────────────────────────────────────────┐
│ REGISTERED USERS ONLY │
└─────────────────────────────────────────────────────────────────────────────┘
The trial version provides batch style operation and the ability to set-up
set-up your "Smart Key Words".
The registered version allows the user to process files and/or set-up
their configuration files interactively as well as the standard functions
available in the trial version.
────────────────────────────────SAMPLE────────────────────────────────────
PCBMPORT.INI Configuration (*Registered Version Only*)
Directory to Process...:
Text Files(s) to Search:
Default Output Listing.:
Smart Directory Redir'n: NO YES (ON) / NO (OFF)
Recheck Files w/o Desc.: NO YES (ON) / NO (OFF)
Skip Check for FILE_ID.: YES (ON) / NO (OFF)
Check for README.......: YES (ON) / NO (OFF)
Limit Desc Length to...: 0 Lines
Filter Graphic Char's..: ON (YES) / OFF (NO)
Retain Beta Char .: YES (ON) / NO (OFF)
Filter User-Specify:
Add Tag Line.......:
Date in File Descript'n: TODAY + 1 / REAL (Actual File Date)
Ignore File Extensions.: YES (ON) / NO (OFF)
Add FILE_NFO.DIZ.......: YES (ON) / NO (OFF)
Add Tag Line Here..:
File name to use...: FILE_NFO.DIZ
Add Text/Advert File...:
Rename file w/ISO9660..: YES (ON) / NO (OFF)
────────────────────────────────******────────────────────────────────────
┌─────────────────────────────────────────────────────────────────────────────┐
│ SORTDESC.INI can contain the following lines: │
└─────────────────────────────────────────────────────────────────────────────┘
Notes - Any that are indicated as OPTIONAL are not necessary... the program
will work as if they were in the INI file and set to their defaults).
- Options are shown in order of expected frequency of use. They do not
have to be in this order in the SORTDESC.INI file.
─────────────────────────────────────────────────────────────────────────────
┌────────────────────┐
│ BASIC COMMANDS │
└────────────────────┘
D=Directory Directory to Search
I=Import_File File to search for descriptions for files without FILE_ID.DIZ
E=Export_File File to place found descriptions in (unless redirected)
S=Smart_On_Off SMART REDIRECTION (ON or OFF)
Whether or not to redirect the files and descriptions according
to keywords found in the descriptions
R=ON RECHECK (ON or OFF)
Whether or not to try to find descriptions for files that
already exist in the listing being exported to (default
export file only)
SKIPEXT=NO Yes or no; when searching for descriptions, ignore if the
extensions don't match (In other words, if this is set to
Yes, the program being looked for is EGG.ZIP and the
description found is for EGG.ARJ, the description WILL be
used). Default is NO. (OPTIONAL)
NODIZ=NO Yes or no; Skip checking for FILE_ID.DIZ; Default is No.
DATE=REAL Use actual file date rather than tomorrow's date when adding
file descriptions to a text file.
Default is TODAY+1, not REAL. (OPTIONAL)
README=NO Yes or no; If SORTDESC can't find either a FILE_ID.DIZ or
a description in the specified text file(s), and you include
the line README=YES, SORTDESC will try to find any file
in the archive called DESC.SDI, README., READ.ME, README.1ST,
or FILENAME.DOC (where Filename is the name of the archive
being examined, without an extension). If any of these are
found, SORTDESC will try to extract a description. If you
use this option, it is HIGHLY recommended that you set a
LIMIT. Default is NO. (OPTIONAL)
TIC=NO YES, NO, or REMOVE; If SORTDESC can't find a FILE_ID.DIZ, then
attempt to use any TIC files that exist in the same directory.
YES simply checks the TIC files; REMOVE removes the TIC files
after checking them, whether they are used or not.
If TIC files have been included in the I= command,
(I.E. I=*.TIC or I=*.TXT when REN *.TIC *.TXT has been run)
they will be included no matter what this is set to, but
the TIC Area will be ignored.
Default is NO. (OPTIONAL)
ONLYMOVE=DESC DESC, FILE or N/A; SORTDESC will optionally only redirect
descriptions, and leave files where they are, or vice versa.
Default is N/A. (OPTIONAL)
┌────────────────────┐
│ ADDING TO ARCHIVES │
└────────────────────┘
DIZ=NO Yes or no; Create FILE_ID.DIZ from description found in
text file, and add to archive? (Also see TAGDIZ, TAGLINE
and NFO below)
Default is NO. (OPTIONAL)
TAGDIZ=Add_line A line to add to the newly created FILE_ID.DIZ (does not
apply to files already contain a FILE_ID.DIZ).
(OPTIONAL)
TAGLINE=Add_line A line to add to the description that was found (only adds
to new FILE_ID.DIZs, and the created description text file,
does not change files that already contain a FILE_ID.DIZ).
(OPTIONAL)
NFO=FileName What to call the file that will be added to archives not
containing a FILE_ID.DIZ. Defaults to FILE_NFO.DIZ.
See the discussion below.
(OPTIONAL)
MSG=Add_Msg.txt A text file to add to the archive (OPTIONAL)
GIF=ZIP If file is a GIF, and not an archive, but you would still
like to attach a FILE_ID.DIZ, add this line. The GIF will
be placed in a ZIP file of the same name. You can also
specify ARJ and LHA. (You must also set DIZ=YES for this
to work). If this line is not included, or one
of those three options are not taken, the GIF will be
untouched, and no FILE_ID.DIZ will be attached.
(OPTIONAL)
┌────────────────────┐
│ FILTERS AND LIMITS │
└────────────────────┘
LIMIT=### The maximum lines to use for any file's description.
Any number ranging from 1 TO 255; use LIMIT=0 or leave this
line out entirely for no maximum limit on the number of lines.
(OPTIONAL)
FILTER=ON On or Off; Remove certain graphic characters and character
combinations that contain no useful information.
Default is ON (OPTIONAL)
BETA=OFF On or Off; If ON, removes character 225 (ß) when filtering
graphics characters. If OFF, skips filtering "ß" character.
Default is OFF (OPTIONAL)
GONE=~STRING1~STRING2~STRING3~ETC~
Specify extra character combinations that will be removed
during filtering (if filtering not turned OFF). Separate
each string with the ~ symbol; up to 80 characters total
are allowed. Example: GONE=~GREAT~I LIKED IT~(NEW)~ will
remove any occurance of the word "Great", the phrase
"I Liked it", and the word "(NEW)". (OPTIONAL)
ISO=9660 9660 or blank; If 9660, ensures that file names comply
with the ISO9660 standard by changing !@#$%- characters
to underscores. Default is blank. (OPTIONAL)
SKIPNF=YES Yes or no; Skip adding "Description Not Found" to the
target description file if a description isn't found.
Defaults to NO. (OPTIONAL)
┌────────────────────┐
│ OTHER COMMANDS │
└────────────────────┘
The following commands determine the order in which
items are checked for...
FIRST=DIZ DIZ, DEScription, REAdme, OR TIC.
Defaults to DIZ. (OPTIONAL)
SECOND=DES DIZ, DEScription, REAdme, OR TIC.
Defaults to DES. (OPTIONAL)
THIRD=REA DIZ, DEScription, REAdme, OR TIC.
Defaults to REA. (OPTIONAL)
For example, your SORTDESC.INI may look like this:
D=c:\pcb\upload
I=c:\text\capture.cap
E=c:\pcb\main\private.
S=ON
R=OFF
DIZ=NO
LIMIT=20
┌─────────────────────────────────────────────────────────────────────────────┐
│ Interactive Version: Keyboard Navigation │
└─────────────────────────────────────────────────────────────────────────────┘
ESC - Previous field or screen; cancel entry
ENTER - Accept and move to next field or as otherwise indicated
on-screen; On menu screens, execute highlighted function.
F5 - Bring up table to lookup information (where applicable)
ARROW DOWN - Highlight next entry
ARROW UP - Highlight previous entry
┌─────────────────────────────────────────────────────────────────────────────┐
│ Why is the file thats added called FILE_NFO.DIZ by default? │
└─────────────────────────────────────────────────────────────────────────────┘
The industry standard for file descriptions stored in an archive is
to call them FILE_ID.DIZ. The length of each line should not exceed
46 characters. This program is designed to correct certain FILE_ID.DIZs
that do not conform to this standard width.
There is a reason why the name of the file SORTDESC adds by default
is FILE_NFO.DIZ and *not* FILE_ID.DIZ: Since many BBSs receive
descriptions along the lines of "Gee - Great Program", it may not be
ideal to add an "official" FILE_ID.DIZ to an archive, as it does not
really conform to the FILE_ID.DIZ standard. Having a unique name helps
the end-user differentiate between an author's description and an
uploader's description. Since the author of SORTDESC is one of those
who must suffer through those odd descriptions, SORTDESC was originally
set up to default this way :)
Other programs may require that you use the "official" FILE_ID.DIZ
filename and format. If the source of your files has properly described
described them, and you find that that the benefit outweighs the risk,
then by all means use the NFO= switch that will make SORTDESC use
FILE_ID.DIZ as the filename.