home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
CEREBRUM
/
DFRAG320.ZIP
/
DEFRAG.DOC
next >
Wrap
Text File
|
2000-03-18
|
18KB
|
411 lines
▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄
▒▒█▀▒▒█ ▒▒█▀▀▀▀ ▒▒█▀▀▀▀ ▒▒█▀▒▒█ ▒▒█▀▒▒█ ▒▒█▀▀▀▀
▒▒█ ▒▒█ ▒▒▒▒▒▄ ▒▒▒▒▒▄ ▒▒▒▒▒█▀ ▒▒▒▒▒▒█ ▒▒█▒▒▒▄
▒▒█ ▒▒█ ▒▒█▀▀▀ ▒▒█▀▀▀ ▒▒█▀▒▒▄ ▒▒█▀▒▒█ ▒▒█ ▒▒█
▒▒▒▒▒█▀ ▒▒▒▒▒▒▄ ▒▒█ ▒▒█ ▒▒█ ▒▒█ ▒▒█ ▒▒▒▒▒▒█
▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀▀▀▀▀
▒▒▒▒▒▒▒▄ ▒▒▒▒▒▒▒▄ ▒▒▒▒▒▒▒▄
▀▀▀▀▒▒█ ▀▀▀▀▒▒█ ▒▒█▀▀▒▒█
▒▒▒▒▒█ ▒▒▒▒▒▒▒█ ▒▒█ ▒▒█
▀▀▀▒▒█ ▒▒█ ▒▒█ ▒▒█
▒▒▒▒▒▒▒█ ▒▒▄ ▒▒▒▒▒▒▒▄ ▒▒▒▒▒▒▒█
▀▀▀▀▀▀▀ ▀▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀
A Quality WWIV Utility Release From Cerebrum
and
Lawrence C. Bensinger
(a.k.a. Dawg)
#1 @2121 WWIVnet
#1 @122 FILEnet
dawg@mindspring.com
http://www.mindspring.com/~dawg
i. Contents, or "How do I find anything in this file?"
The following outline may help you find the information you need a little
faster:
i. Contents, or "How do I find anything in this file?"
ii. Introduction and Shareware Information
I. System Requirements, or "What's the LEAST I can get by with!?"
II. Disclaimers, or "Whose fault is it?"
III. Getting Started or "Screw the docs, what do I DO!?"
IV. DEFRAG.EXE and WWIV.INI what's what?
V. What is DEFRAG?, or "What's it do?"
VI. How does DEFRAG work?, or "How's it do that?"
VII. Registering DEFRAG, or "A Plea for Money"
VIII. Running DEFRAG.EXE
IX. Running DEFRAG.EXE revisited, or "What are my options?"
X. Warnings, or "Why did I DO that!?"
XI. Copyright Information, or "Who owns what?"
XII. Revision History/Information/New Features (moved to history.doc)
XIII. Personal Stuff About the Author and How to Reach Him
I. System Requirements, or "What's the LEAST I can get by with!?"
DEFRAG v3.20 REQUIRES that you be running WWIV version 4.30 or higher.
Version 3.20 of DEFRAG will NOT work with any versions of WWIV previous to
v4.30, unless you specifically tell it to do so.
DEFRAG also requires that you be running WWIV on an IBM PC/XT/AT
(including 386's & 486's) or compatible system. Color monitors are supported
(in text mode), but since the colors are "acceptable", I've never bothered to
change them to look all that nifty. It ain't broke, so I ain't fixed it.
As far as RAM is concerned, DEFRAG will--at a bare mininum--need at LEAST
32k of free memory to work its magic. That number (32k) is for ONE message
base. Depending on how many message bases you have, this number will go UP by
about 4-15k for each extra sub. If there is not enough free memory, DEFRAG
will abort and let you know that it couldn't grab enough memory. If you get
such a message, try removing TSRs and other programs, or, if you are trying to
run DEFRAG under WWIV while shelled to DOS (as a chain or by pressing
Shift-F10 or F at WFC), [Q]uit the BBS and try running DEFRAG all by itself
with WWIV out of memory.
DEFRAG also requires that you have at LEAST twice as much free disk space
as your largest message base. So, if you have 64 subs, and one of them is
700k, you will probably need 1.4 megs of free disk space for DEFRAG to operate
properly. (Please note that this is a liberal guesstimate -- you may find
that you only need AS MUCH extra space as your largest sub, not necessarily
twice as much...or you may find that you only need half as much extra space --
it all depends on how many subs, what's in them, and if and when you ever
DEFRAG'ed them).
ii. Introduction and Shareware Information
The purpose of DEFRAG is simple -- to defragment the message bases and
e-mail files to remove unused (or "dead") space and allow faster message
reading from disk, as well as to attempt to repair damaged messages. As a
by-product of good code-writing, DEFRAG will usually also repair certain
problems with message bases and EMAIL.DAT, including the "exploding" EMAIL.DAT
problem people seem to be having recently.
** DEFRAG is submitted to the general public as **
** Shareware. As such, you are granted a 30-day **
** trial usage period, after which you must **
** register DEFRAG with the author, or you must **
** discontinue using it. Please see Section VII, **
** "Registering DEFRAG" (or the file REGISTER.DOC) **
** for further discussion of your rights to this **
** software. **
II. DISCLAIMERS, or "Whose fault is it?"
The compiled program DEFRAG and the documentation are pro-
vided AS IS, with no warranty or personal guarantee. I am
not responsible for any damage this program does to your
system or your data files. For that reason, BACK UP YOUR DATA
before running DEFRAG, at least the first time.
III. Getting Started or "Screw the docs, what do I DO!?"
For the basic user, the command DEFRAG on the DOS command line will do
all the message bases. DEFRAG /E+ will include the e-mail file (EMAIL.DAT) as
well. Other, more specialized options are outlined below.
IV. DEFRAG.EXE and WWIV.INI what's what?
The other thing that will be accomplished the first time you run DEFRAG
is that it will add itself to your WWIV.INI file. The following is what is
added:
[Defrag]
Reg_Num = 0
Reg_Key = 0
Version = 3.19ß
Logging = Yes
Defrag_Email = No
Sound = Yes
These are the default values. I personally have Defrag_Email turned on;
however since the program's prior behavior was to ignore email.dat by default
I chose to have it continue to do so. Two things to note here. First is that
if you use any of the command line switches below they *WILL* override any
settings from WWIV.INI. Secondly is that to change values simply edit
WWIV.INI; however you can use the command "DEFRAG REGISTER" just like that to
enter your registration information. Considering that of the remaining four
options, one is an informational item and the other three are yes/no toggles
I saw no point in adding those. I *may* add these settings to the editor
in WWIVsys, but until I update it for WWIV 4.30 I don't know.
V. What is DEFRAG?
DEFRAG is a utility used to defragment WWIV Message Bases that use
Storage Type 2 or Storage Type 5 (by modification only, unless WSS gets it
into WWIV v4.24+), as defined in BOARDEDIT. (For quick reference, Type 2 is
the type where all the messages are stored in one file in 512-byte blocks, and
Type 5 is the type where all messages are stored sequentially. Type 5 storage
has NOT been implemented in WWIV yet, but the structure IS there.)
VI. How does DEFRAG work?
DEFRAG begins by reading CONFIG.DAT, which tells it where all your
messages are being stored. Next, it reads SUBS.DAT, which tells it the name
and number of all your message bases, plus some info about how they are
stored. Then it starts processing the message bases.
To process a message base, DEFRAG reads in the appropriate data file for
the message base. This tells DEFRAG how many messages there are and how each
one is actually stored. If you have more messages in the message base than
the limit is currently set at (for example, you just lowered the max messages
limit from 100 to 50, and there are still 100 messages there, DEFRAG will
delete them for you, starting with the first message and going on through as
many as needed, skipping any marked unremovable. Then, it processes each
remaining message individually, converting them to a new type if necessary. In
addition, if you just set up a new sub in BOARDEDIT, WWIV automatically makes
it an 80k file. DEFRAG will now STRIP off the excess disk space used if it
does not hold any messages. The screen tells you at all times exactly what is
happening.
DEFRAG does not use a true compression algorithm, such as PKZIP or RAR.
All it does is remove the "dead" space from a message file which is no longer
being used. The amount of space you'll reclaim will fluctuate based on many
things. Among those are the number of subs you have, the activity of those
subs, and how often you run DEFRAG. Below are a couple of excerpts from my
log file. These are ran on a K5/100 running under Win98. On my P3/450 the
speed numbers are much better.
DEFRAG Log Entry for 03/13/1999 at 14:44:17
═══════════════════════════════════════════
19473 messages processed.
67534336 bytes (65951.5k) processed.
8056320 bytes (7867.5k) saved!
3468 bytes per message (average).
2.75 minutes elapsed.
7081.09 messages per minute.
═══════════════════════════════════════════
DEFRAG Log Entry for 03/20/1999 at 16:22:33
═══════════════════════════════════════════
19827 messages processed.
67168256 bytes (65594.0k) processed.
7271936 bytes (7101.5k) saved!
3387 bytes per message (average).
3.18 minutes elapsed.
6228.38 messages per minute.
═══════════════════════════════════════════
VII. Registering DEFRAG, or "A Plea for Money"
As of DEFRAG v2.00 it became shareware. I am continuing with Spackle's
policy of "Lifetime Registration" on Defrag. I have also left the same
unregistered delays that Spackle had in. These are detailed below.
* Subs above 80 (#79 according to BOARDEDIT) are not ***REMOVED***
defragmented. ***REMOVED***
* A small plea for registration is shown before DEFRAG
begins its work, and there is a VERY small delay for
unregistered users to read the registration plea.
* Unregistered copies will wait for keyboard input after
execution, or will automatically time out after 3 minutes.
To register please fill out the order.frm included in the archive file and
send it to the address listed on the form. If you have previously registered
you will in fact need to have a new registration key generated. I do have a
list of registered users from Spackle and if you are one of those users, I
do still need you to fill out the form. However you can simply email it to
the internet address listed (dawg@mindspring.com) and I'll send you a new
registration code. You'll need to either manually insert the code and number
into WWIV.INI or run "DEFRAG REGISTER" and enter it that way.
VIII. Running DEFRAG.EXE?
Running DEFRAG involves two easy steps:
1. Copy DEFRAG.EXE to your main BBS directory - \WWIV, \BBS or
whatever you call it.
2. At the main BBS DOS prompt (e.g. C:\WWIV>), just type DEFRAG with
no parameters.
The default command will defragment all of your message bases and WILL
create a log (DEFRAG.LOG) in your GFILES directory. It will not touch your
EMAIL.DAT, but that's alright for now. We'll get to that next.
IX. Running DEFRAG.EXE revisited, or "What are my options?"
DEFRAG is run using the following convention:
DEFRAG [/?] [/D{xx|xx-yy}] [/E{+|-}] [/L{+|-}] [/O{+|-}] [/S{+|-}]
The following (defaults are marked with the "*" characters) parameters or
options are available:
/Dxx DEFRAGment only certain message bases, specified by the
xx parameter. Specify nn by the number in BOARDEDIT
(i.e. sub #1 while logged on would be 0 to DEFRAG).
The number xx cannot be higher than the maximum number
of subs available (DEFRAG will check this anyhow, so
don't worry too much if you enter a wrong number).
/Dxx-yy DEFRAGments a range of subs from xx to yy, inclusive.
/E Enable/*Disable* EMAIL.DAT defragmentation.
/L *Enable*/Disable logging of DEFRAG's activities or errors.
DEFRAG.LOG is updated BY DEFAULT unless you specify the /L-
parameter on the command line. (DEFRAG.LOG is created if it
doesn't exist.)
/O Only defragment EMAIL.DAT - ignore message bases.
/S *Enable*/Disable sound. Default is on. /S- turns it off.
/W *Enable*/Disable stripping of WWIV ^C colors from subnames
/? Show a help screen similar to what you see here.
To enable or disable an option you place a "+" or "-" after it, such as
"/L-" to disable the log or "/E+" to enable EMAIL.DAT defragmentation. The
/Cnn and /Xnn options are repetitive, for example:
DEFRAG /D0 /D4 /D8 /D11 /D23
would defragment subs 1, 5, 9, 12, and 24. (Remember, sub 0 in BOARDEDIT is
actually sub 1 on the board itself - DEFRAG uses BOARDEDIT's info, not what
you see when you log on.) These options can all be used interchangeably (and
repetitively).
Here are a few examples:
DEFRAG /O /D2 Defrag EMAIL.DAT and sub 3 and create a log
DEFRAG /E- /D1 /L- Disable EMAIL.DAT defrag/defrag sub 2 & no log
DEFRAG /E /L /S Defrag EMAIL.DAT, create a log, no sound
DEFRAG /D3-35 /E- Defrag sub #4-#36, no EMAIL.DAT, with a log
DEFRAG /W /O Defrag EMAIL.DAT and all subs, strip ^C colors
DEFRAG /? Show small help screen
X. Warnings, or "Why did I DO that!?"
Although DEFRAG's operations have improved considerably since its first
incarnation, it is still rather unwise to halt the execution of DEFRAG while
it is working on your message bases. It may not erase any files, but it may
well scramble them. You may hit CTRL-C or CTRL- Break at any time to exit,
but this is not a suggested option. In fact, I strongly discourage doing
ANYTHING until DEFRAG has completed its work. DEFRAG WILL automatically make
backup files before any work is actually done; however, no guarantee is made
or implied that DEFRAG is 100% safe with ALL possible combinations of number
of message bases, size of user list, version of WWIV, modifications made to
WWIV, etc. Diverting a program from its normal path of events is not
generally a good idea. Still, it is possible, and sometimes useful to do so.
I have TRIED to make DEFRAG damage my files, without success; however, I can't
suggest you do the same.
And to quell a few rumors that have been floating around, DEFRAG does not
touch the user list in any way. In fact, the code for DEFRAG doesn't even
"know" that such an file or data structure even exists (only WWIV data
structure pertinent to DEFRAG itself are made known to DEFRAG.C [example:
configrec and messagerec are "known" to DEFRAG.C, but userrec is not].) Sysops
having problems with duplicate accounts in their USER.LST should look
elsewhere (in fact, I've had similar problems, and suspect it is possibly a
bug in 4.22 itself).
XI. Copyright Information, or "Who owns what?"
DEFRAG and its accompanying documentation and support files are Copyright
(c) 1997-2000 by Lawrence C. Bensinger. Under NO CIRCUMSTANCES shall any
"new" or revised version of either the executable(s) or the documentation or
both be released to anyone without prior knowledge of and written consent from
the Lawrence C. Bensinger. No other public releases will be allowed. If you
have any suggestions on how to improve DEFRAG, please mail them to me (see end
of document).
XII. Revision History/Information
Moved to history.doc.
XIII. Personal Data Regarding the Author and How to Reach Him
There have been several people that have contributed to Defrag. The
original incarnation was written by Jeff Garzik (aka East Bay Ray). Jeff
wrote some tremendous mods for WWIV back in the 4.1x era and wrote the
initial Defrag. When he left the WWIV world to pursue a degree at Georgia
Tech, he passed the code on to...
Scott Schnegelberger (aka Spackle) with help from Cris McRae (aka JAFO).
They are responsible for Defrag looking and working the way it does today.
If you have ever seen the source back in the 1.xx era's you can really
appreciate the amount of work they've done.
I purchased the code from Scott in late 1997. I had already picked up
the source of the FMD utilities and had unsuccessfully tried to contact JAFO
to purchase the source of his. The main reason behind this is that I use
and like these utilities and have no desire for them to become abandoned as
have the many Tolkien utilities I registered throughout the years. As I said
publicly when I picked up Defrag, it is what I'd consider a "mature" program
and as such I didn't see a lot of need to add features. I did dump the
defrag.key and added WWIV.INI support in it's place; but otherwise the program
does a nice job and I see no real reason to break something that works so
well. So while I will address any bugs and/or new WWIV versions unless there
is a suggestion out there with some real merit what you see is what Defrag
is and will be.
I can be contacted at the following addresses:
WWIV-Based (In order of preference):
1@122 Filenet
1@2121 WWIVnet
Internet-Based (Again in order of preference):
dawg@mindspring.com
cbensinger@email.com
Fidonet
1:100/235
The bbs is still open in case you need this or any other file. The
number is (636)940-1253 (note the area code changed 5/99 to this). You can
also visit my web page (http://www.mindspring.com/~dawg). I don't have any
of my programs online yet, but I should in the near future. In the interim
you can telnet to Frank Reid's bbs (Eagle's Dare) and get them. I believe
the address to telnet to is simply filenet.wwiv.net but I'm not for sure.
----------
Thanks for using DEFRAG v3.20!
--------------------