home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DLDCOU1A.ZIP
/
DLDCOUNT.DOC
< prev
next >
Wrap
Text File
|
1993-10-07
|
11KB
|
225 lines
┌────────────────────────────────────────────────────────────────────────────╗
│ ║
│ PEGASUS DOWNLOAD COUNTER & DIRECTORY UPDATER ver 1.1a ║
│ ║
│ Copyright (c) 1993, Chris Michaels ║
│ ║
│ Another Fine Program From: ║
│ ║
│ The PEGASUS PROJECT...the Next Generation (813) 481-5575 ║
│ ║
└════════════════════════════════════════════════════════════════════════════╝
SEE HISTORY FOR CHANGES/IMPROVEMENTS
OVERVIEW
════════
DLDCOUNT is a remarkable utility that will process the
information contained in PCBOARD's DOWNLOAD.TXT file and add
a line to the directory listing indicating the number of times
each file has been downloaded. This information is important for
your users to determine which files are the most popular, as well
as for you to determine which files could be deleted without
being missed.
DLDCOUNT can be run in your nightly event, thus providing the
user with daily updates on the dl status of each file.
Briefly, DLDCOUNT reads the DOWNLOAD.TXT, creates a temporary IDX
file with the download names, then compares it to each file
listed in the directories. DLDCOUNT can be configured to update
all of the directories, or just the ones you choose. It can even
update directories with the same name in different conferences.
Once the DOWNLOAD.TXT file has been processed. DLDCOUNT will copy it
to a storage file [Configurable] then delete the DOWNLOAD.TXT so
the following time it is run, it will only be processing files
downloaded SINCE it's last run. EVERY TIME THEREAFTER, THE
DOWNLOAD.TXT FILE IS APPENDED TO THE STORAGE FILE, SO YOUR
DOWNLOAD INFORMATION IS ALWAYS RETAINED. Finally, after updating
all of the directories, DLDCOUNT will write a bulletin [path and
name configurable], indicating when it was last run, the total
number of files on the system, and how many downloads it
encountered since it's last run.
SETUP
═════
Setup is fairly simple and straightforward. Choose a directory
where you want to put the executable and the configuration file.
I have them both in my \PCB\GEN\ directory. Copy the executable
to that location, then create a configuration file following the
instructions below. You can use any name for this file, I use
DLDCOUNT.CFG.
DLDCOUNT.CFG is a standard ascii file containing the
information DLDCOUNT will need to perform it's magic. A sample
configuration file is included in this archive, and it's
explanation follows:
C:\PCB\MAIN\DOWNLOAD.TXT LINE 1 - Full Path & Name of the
PCBOARD DOWNLOAD.TXT file
C:\PCB\GEN\BLT9 LINE 2 - Full Path & Name of the
bulletin file DLDCOUNT
will create. There MUST be
an entry on this line! If
no bulletin is desired,
then leave a blank line
here.
C:\PCB\MAIN\DOWNLOAD.HLD LINE 3 - Full Path & Name of the
storage file DLDCOUNT will
append daily with the
DOWNLOAD.TXT information.
C:\PCB\GEN\DIR1 LINE 4 - Full Path & Name of the
C:\PCB\GEN\DIR2 TO directories you want
C:\PCB\GEN\DIR3 END DLDCOUNT to process. The
C:\PCB\GAMES\DIR1 program is currently
C:\PCB\ADULT\DIR1 written to support any
[ETC] number of directories from
one to 2000! You can
choose precisely the
directories you want
processed, and the order
does not matter. DLDCOUNT
works on each individual
directory separately.
RUNNING DLDCOUNT INITIALLY THEN IN AN EVENT
═══════════════════════════════════════════
The initial run of DLDCOUNT is going to be a long one! Remember
DLDCOUNT must process EVERY download your system has in the
DOWNLOAD.TXT file, and compare it to EVERY file listed in your
directories. Depending on the speed of your computer and the size
of your system, this could take hours! On The PEGASUS PROJECT,
running a 386/33, the INITIAL RUN processed a DOWNLOAD.TXT
containing about 5,000 file names, and it took over 5 hours
to complete! THIS IS ONLY FOR THE FIRST TIME RUN, AND AFTER
THAT, IT TAKES ABOUT 10 TO 15 MINUTES PER NIGHT TO UPDATE
ABOUT 100 DIRECTORIES.
So, for you INITIAL RUN ONLY it is recommended that you
dedicate one window of DESQVIEW or one node to running the
program. If you run it while the board is up, it is a good idea
to copy the directory files [DIR1 ETC] to a work directory, to
avoid share errors is someone views a directory while it is
being processed. Then, after processing, simply copy the
directories back to their original location.
On smaller systems, of course, the time is much shorter, so handle
it any way you want.
Once the initial run is completed, DLDCOUNT, which is really
incredibly fast, can update the files as part of an event. On
The PEGASUS PROJECT, it takes only about 15 minutes during our
nightly event to update all directories.
To do this, you must add an entry into your event.bat file
[remember in PCBOARD 15.0 this file has no .bat extension and is
defined in the PCBSETUP under EVENT].
The command line for DLDCOUNT is:
DLDCOUNT DLDCOUNT.CFG
Where DLDCOUNT.CFG is the name of the configuration file you created
earlier.
Add the following to your event.bat file:
CD \PCB\GEN <---- Change to directory containing
DLDCOUNT.EXE & DLDCOUNT.CFG
DLDCOUNT DLDCOUNT.CFG <-----Execute the program
That's it! Now DLDCOUNT will update your directories every
night adding the number times a file has been download.
HINTS ON SPEED [OPTIONAL]
═════════════════════════
As previously stated, DLDCOUNT is INCREDIBLY fast, but you
can make it even run faster if you move the whole process to
a ram drive, assuming you have one and it has enough space.
To do this, change your event entries to something like this:
I:
COPY C:\PCB\GEN\DLDCOUNT.EXE
COPY C:\PCB\GEN\DLDCOUNT.CFG
COPY C:\PCB\MAIN\DOWNLOAD.TXT
DLDCOUNT DLDCOUNT.CFG
DEL DLDCOUNT.*
C:
You could even copy the directories it DLDCOUNT will be
working on to the ram drive and then back to their proper
location, however, if you do, remember to change the CFG file
to reflect the new location of the DIR's it will be
processing, and REMEMBER IF YOU HAVE DIFFERENT CONFERENCES
WITH THE SAME DIRECTORY NAMES, BE CAREFUL NOT TO OVERWRITE
THEM. You can avoid this with multiple configuration files.
The event file for multiple configuration files might look
like this:
I: <-CHANGE TO RAM DRIVE
COPY C:\PCB\GEN\DLDCOUNT.EXE
COPY C:\PCB\GEN\DLDGEN.CFG <-CONFIG FOR GEN DIRs
COPY C:\PCB\GEN\DLDADULT.CFG <-CONFIG FOR ADULT DIRs
COPY C:\PCB\GEN\DLDGAMES.CFG <-CONFIG FOR GAMES DIRs
COPY C:\PCB\MAIN\DOWNLOAD.TXT
COPY C:\PCB\GEN\DIR*. <- GET GEN DIRs
DLDCOUNT DLDGEN.CFG <- PROCESS THE GEN DIRs
COPY DIR*. C:\PCB\GEN <- COPY UPDATED DIRs BACK
DEL DIR*. <- DEL DIRs FROM RAM DRIVE
COPY DOWNLOAD.HLD C:\PCB\MAIN <- COPY THE APPENDED
STORAGE FILE [NAME FROM
CONFIG FILE LINE 3] TO
THE STORAGE AREA. ONLY DO
THIS ON RUN OF THE FIRST
CONFIGURATION FILE.
COPY C:\PCB\MAIN\DOWNLOAD.TXT <- RE-COPY THE DOWNLOAD.TXT
COPY C:\PCB\ADULT\DIR*. <- GET ADULT DIRs
DLDCOUNT DLDADULT.CFG <- PROCESS ADULT DIRs
COPY DIR*. C:\PCB\ADULT <- COPY UPDATED DIRs BACK
DEL DIR*. <- DEL DIRs
COPY C:\PCB\MAIN\DOWNLOAD.TXT <- RE-COPY THE DOWNLOAD.TXT
COPY C:\PCB\GAMES\DIR*. <- GET GAMES DIRs
DLDCOUNT DLDGAMES.CFG <- PROCESS GAMES DIRs
COPY DIR* C\PCB\GAMES <- COPY UPDATED DIRs BACK
DEL DIR*. <- DEL DIRs
DEL DOWNLOAD.HLD
DEL DLDCOUNT.*
C:
REGISTRATION
════════════
DLDCOUNT IS NOT FREE IT IS SHAREWARE. Although it is not crippled
in any way, if you use the program you MUST register it!
Registration fee is $20.00. To register, mail the fee along with
your name, address, phone, bbs name, and bbs phone number to:
CHRIS MICHAELS
6237 PRESIDENTIAL COURT #125
FORT MYERS, FL 33919
If you have any comments, suggestions etc. you can contact me at
THE PEGASUS PROJECT...the Next GeneratioN (813) 481-5575
DISCLAIMER
══════════
DLDCOUNT has been tested thoroughly, however, as with all
shareware, we cannot be held responsible for any damage or loss
resulting from this program, and will not be liable for
anything. The program is offered as is, and the user accepts
all responsibility.