home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Pier Shareware 6
/
The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso
/
035
/
lsetdesc.zip
/
LSETDESC.DOC
< prev
next >
Wrap
Text File
|
1994-10-24
|
11KB
|
245 lines
──────────────────────────────────────────────────────────────────
▒▒▒ LSetDesc ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Version 1.00 ▒▒▒▒
──────────────────────────────────────────────────────────────────
(c)1994 Simon Ewins
FidoNet....: 1:250/664
InterNet...: simon@axaxa.tor250.org
The latest version of LSetDesc is always available at 1:250/664 by
requesting the 'magic name' LSETDESC.
──────────────────────────────────────────────────────────────────
▒▒ Disclaimer & License ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
──────────────────────────────────────────────────────────────────
LSetDesc is FreeWare *NOT* Public Domain.
The documentation and accompanying program are copyrighted
material designed, produced and tested by the author of the
software.
Although every care and attention has been taken to write and test
the program to make sure that it does what this documentation
states, the program is provided as it is, without warranty or
guarantee of any kind, either expressed or implied, as to the
quality or performance of this program, except that it will occupy
disk space.
The author shall not be held liable to you or anyone else for any
direct, indirect, incidental or consequential damages, including
any lost profits, lost savings, lost business, which may result
from the use or inability to use this program.
Your use of this program constitutes your agreement to this
disclaimer and your release of the author from any form of
liability or litigation.
You are actively encouraged to copy and distribute it in an
unmodified way as much as you want, as long as you still abide to
the conditions mentioned here and that no money or monies or any
other form of compensation is asked for or accepted.
──────────────────────────────────────────────────────────────────
▒▒▒ LSetDesc ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Version 1.00 ▒▒▒▒
──────────────────────────────────────────────────────────────────
LSetDesc started out as a small program to read the SysMsg.Dat
file used by LORA-BBS and try to resolve the description field for
each echo area from a FidoNet.NA file or any file that contains
the echo area tag name followed by one or more spaces and then a
description of the area.
Like this:
MONKEY_BUSINESS All about monkeys
HOPE_CHEST Hope Chest discussion forum.
That worked fine so I added more fields that could be dealt with
globally as well as providing a 'one shot' method that didn't
require a descriptions file like FidoNet.NA or similar.
LSetDesc can get a bit complicated but, after a brief discussion
of the command line options available, I hope that some examples
will clear things up for you.
──────────────────────────────────────────────────────────────────
▒▒▒ LSetDesc ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Version 1.00 ▒▒▒▒
──────────────────────────────────────────────────────────────────
Usage: LSetDesc [options]
Options: -d<descriptions_file_name>
-c<config_file_path_name>
-r<read_access_level>..... T,L,N,P etc.
-w<write_access_level>.... T,L,N,P etc.
-x<maximum messages> .....
-e<maximum age> ..........
-a<tag> .................. search for & only apply to tag
-q ....................... apply QWK tag
-f ....................... forced write
-s ....................... write Squish.Cfg
-g ....................... flag P(or)V (and) A,G
"-udescription to use" ... use supplied description
"-odefault origin line" .. must be in double quotes
NOTE: To allow spaces in the -u and -o arguments the ENTIRE string
(including the -o or -u) MUST be enclosed in double
quotation marks.
-d ... The descriptions file name (and path if required). This
file must be in the format demonstrated on the previous
page. The number of spaces between the area name and the
description doesn't matter but must be at least one.
-c ... The config file name is the only argument that must be
present regardless of any other options. This is the name
(and path if required) of the LORA SysMsgat file.
-r ... Sets the read access level to Twit, Disgrace and so on up
to Hidden. The r must be followed by the first letter of
the access level to set.
-w ... Sets the write access level to Twit, Disgrace and so on
up to Hidden. The w must be followed by the first letter
of the access level to set.
-a ... This specifies an area tag that is to be searched for and
any changes (-r, -w, -q etc.) will be applied ONLY to that
area. -d can be used with -a but the only description taken
from the descriptions file will be the one for the tag
specified with the -a argument.
-q ... This will take the first 12 letters (or less if there
aren't 12) from the echo tag listed for the area and place
them in the QWK name field. For some reason the SysMsg.Idx
file update, when this option is used, doesn't take. If
this happens to you an update can be forced by entering the
messages areas configuration of LSETUP and altering any QWK
name and then saving the record. After the database is
updated you can then change it back again. This is the only
bug that I have found and it is far from critical.
──────────────────────────────────────────────────────────────────
▒▒▒ LSetDesc ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Version 1.00 ▒▒▒▒
──────────────────────────────────────────────────────────────────
-a ... This specifies an area tag that is to be searched for and
any changes (-r, -w, -q etc.) will be applied ONLY to that
area. -d can be used with -a but the only description taken
from the descriptions file will be the one for the tag
specified with the -a argument.
-f ... Normally LSetDesc will only update a field if it is empty
or of NIL value. Using the -f option will force the data
provided by you or gleaned from the descriptions file to be
written over existing data.
-g ... This will apply the flags for an area as V (private only)
or P (public only), as well as the A (use alias) and G
(group restriction) flags. If -g is used with no additional
arguments then all flags will be set to 'No'. This means
that those that are provided will be set to 'Yes' and those
that aren't will be set to 'No'. -gPG would set the Public
and Group flags to 'Yes' and set the Private and Alias
flags to 'No'.
-o ... This will write the origin line into the record(s) being
updated. If there are any spaces in your origin line
(usually there would be) then you must enclose the -o
argument INCLUDING the -o itself in double quotes...
"-oThis is my origin line" is correct but -o"My origin" is
not.
-u ... In a 'one shot' run of LSetDesc you can supply a
description yourself rather than having LSetDesc search a
descriptions file. As with the -o option you must surround
the -u in double quotes if there are any spaces in the
string. Specifying -u with a -d will result in an error as
will specifying a -u without a -a.
-s ... If used with the name of a Squish.Cfg file this will write
the same for you. This will only be of use to those who use
a reader like FleetStreet that requires this in order to
know what echo areas you have on your system.
-x ... The maximum number of messages in the area.
-e ... The maximum age (in days) for the area.
──────────────────────────────────────────────────────────────────
▒▒▒ LSetDesc ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Version 1.00 ▒▒▒▒
──────────────────────────────────────────────────────────────────
Examples:
LSetDesc -cSYSMSG.DAT -dD:\NET\FIDONET.NA -rN -wS -q "-oA_X_A_X_A :: Toronto"
- Uses D:\NET\FIDONET.NA
Writes to SYSMSG.DAT in the current directory
Sets read access to Normal
Sets write access to Sysop
Fills QWK tag with echoarea tag
Fills any empty origin fields with: A_X_A_X_A :: Toronto
LSetDesc -cSYSMSG.DAT -dFIDONET.NA -aHOLYSMOKE -x1000 -e14 -ssquish.cfg
- Uses SYSMSG.DAT in the current directory
Searches FIDONET.NA (in the current directory)
For the tag HOLYSMOKE and applies the description (if) found
Sets maximum messages to 1000
Sets maximum age to 14 days
Writes areas to a Squish.Cfg file
LSetDesc -cSYSMSG.DAT "-uMonkey Business" -aMONKEY_BUSINESS -q -f
- Uses SYSMSG.DAT in the current directory
Applies the description "Monkey Business"
To the area MONKEY_BUSINESS
Fills the QWK tag with MONKEY_BUSIN
Forces a write to the field even if it isn't empty
LSetDesc -cSYSMSG.DAT "-oNew Origin Line"
- Replaces all areas' origin lines in SYSMSG.DAT with the origin line
"New Origin Line" if they are empty
LSetDesc -cSYSMSG.DAT "-oNew Origin Line" -f -gPG
- Replaces all areas' origin lines in SYSMSG.DAT with the origin line
"New Origin Line" even if they aren't empty
Also sets the Group and Public flags for all areas
──────────────────────────────────────────────────────────────────
▒▒▒ LSetDesc ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Version 1.00 ▒▒▒▒
──────────────────────────────────────────────────────────────────
Future versions of this program will involve adding more fields
that can be manipulated (like the access flags and areafix levels
for each area). Who knows, it may even turn into a full blown
message area editor with global search and replace... hmmmmm.
Although this program is FreeWare I would mention that donations
to my beer fund are always welcome. If you feel that you'd like to
buy me a beer (and maybe even my wife) for providing you with this
program (and my wife for putting up with me while I worked on it)
please feel free to send a donation to the beer fund at:
Simon Ewins
102 Cleveland Street,
Toronto, Ontario
CANADA M4S 2W5
Enjoy...