home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carsten's PPE Collection
/
Carstens_PPE_Collection_2007.zip
/
T
/
TOP5PCB.ZIP
/
TOP5.DOC
< prev
next >
Wrap
Text File
|
1994-01-02
|
4KB
|
75 lines
TOP5 Transfer Stats Utility for PCBoard
...by -=\The Liquidater/=-, PoW Programmer
Again, Docs are not real important to me, since I run most my programs
without the benefit of doc <g> but here comes some quickys...
Top5 is a small utility I wrote to give me a feature I had become used
to when I was running Celerity BBS Software, that feature was the simple
display of my top uploaders and downloaders for the current month and for
"alltime" when a user moves into the transfer area. I found that this
display actually caused some freindly competetion between my more active
users, and after all, on a elite board, file activity is what its all
about!
Top5 works in two sections, first a PPE, defined in your CMD.LST
file from within PCBSETUP.EXE:
Command Security Replacement/PPE
F 10 C:\PCB\PPL\TOP5.PPE
This make TOP5.PPE run anytime a user uses the F (File Menu) command
from the main menu. As you can see from the source code I have included,
the PPE itself does very little. Simply saves the command line, incase
the user has 'stacked' commands ie: F 12, displays the TOP5. file and
then passes the command line back to PCBoard, to execute the commands.
The second part of TOP5 is TOP5.EXE, written in Borland Pascal, this
program should be run in your $$LOGOFF.BAT file to keep the display file
current. TOP5.EXE reads in two files, first DOWNLOAD.TXT which is
maintained by PCBoard as a record of all upload and downloads, TOP5.EXE
scans this file looking for the current month/year and then creates a
database on the fly (in Memory) of your most active users in both
uploads and downloads. Then TOP5 reads your USERS. file scaning for
the most active overall users. All files are opened, and read in full
share mode, so this utility can be run on a multinode system without
taking all nodes down! TOP5 then create the final output file which
it names TOP5. in the current subdirectory (C:\PCB\PPL\ on my system).
Notes:
It is important that TOP5.EXE and TOP5.PPE be run from the
same subdirectory and preferablly your \PCB\PPE subdirectory.
TOP5.EXE expects to find the two files it need, DOWNLOAD.TXT
and USERS. in the \PCB\MAIN\ subdirectory! If this is not correct
TOP5.EXE will accept a command line parameter of the your correct
path to these two files.
ie: TOP5.EXE D:\PCB1\MAIN\
If you currently don't have an $$LOGOFF.BAT just create one!
You can locate this file anywhere in your path, PCBoard will find
it, be sure you change subdirectorys in this bat file to where the
TOP5 files are located, as TOP5.EXE creates the bulletin file in the
current subdirectory where ever it is run.
ie: Sample $$LOGOFF.BAT file
@ECHO OFF
C:
CD\PCB\PPL
TOP5.EXE
CD\PCB
SHAREWARE NOTICE: Shareware sucks, have you noticed?
This file is freeware and as such can be used by anyone, anytime.
I accept no responsibility if your processor blows up while running
this program. If you would like to see some improvements to this or
any of my utilities, feel free to call my board and leave me mail, if
you use this program and would like to express some thanks, how about
calling my system and uploading some 0 hour wares...<g> l8r
-=\The Liquidater/=-