home *** CD-ROM | disk | FTP | other *** search
- ADDTIMES - a CDor FMS utility for the Times Downloaded in FMS MASTER.DIR Mod.
- Copyright (c) 1993 Daniel T. Drinnon
-
- |Recent Changes marked with "|"
-
- The sole purpose of ADDTIMES is to add the 5 character field of the Times
- Downloaded mod into your FMS MASTER.DIR file. It can also UPDATE your
- MASTER.DIR file as well from an external 'list' file which contains the
- |names and the number of times the file to update has been downloaded.
-
- ADDTIMES will take a line in the MASTER.DIR file and add a 5 character number
- string to represent the number of times a file has been downloaded based on
- what you tell it to do. If it is working on a line that is nothing but an
- extended description, then it will put 4 spaces and a period ".".
-
- Once ADDTIMES has been used to modify your FMS MASTER.DIR file, you are ready
- to use the Times Downloaded option in the CDor mods. Remember to turn it ON
- in CONFIG!
-
- ADDTIMES CONFIG FILE:
- ---------------------
- The config file format is as follows:
-
- MASTER.DIR
- 46
- C:\RBBS\NODE1\DOWNLIST.DAT
- OUTFILE.DIR
- -------------------------------------------------------------------------------
- Line 1 = input file name, your Master FMS list
- Line 2 = your description length as set in config (DON'T add the 5 to it!)
- Line 3 = sorted list of file names with download times:
- The format of this file must be:
- FILENAME.EXT,n
- Where filename is the file and n is the number of times downloaded.
- The number of times downloaded cannot exceed 9999!
- * note:
- If you do not have a sorted list, then put the word NONE in
- line 3
- Line 4 = The output where the modified FMS list will be written.
-
-
- ADDTIMES is smart enough to know if it is working on a MASTER.DIR that already
- has the Times Downloaded 5 character field added. If the MASTER.DIR file has
- already been modified, then ADDTIMES automatically goes into UPDATE mode.
-
- Using Addtimes:
- ---------------
- For first time installation of the Times Downloaded info into your stock style
- FMS MASTER.DIR file, you can either specify NONE in line 3 or a data file. IF
- you select NONE, then all files will of course have a 0 for times downloaded.
- If you use UPDN, the UPDN3.DAT file format is compatible with ADDTIMES and
- ADDTIMES will read this file and put the times downloaded for each file it
- can match in your FMS MASTER.DIR. If you use a data file, you
-
-
- MUST!
-
- SORT the data file FIRST! Use QSORT or whatever sorter you want to make this
- data file alphabetically sorted.
- ADDTIMES does the job, but it can take time for it to run thru a big list of
- files, but fortunatly, this only has to be done one time. If a file is in
- the MASTER.DIR and not in the data file, then of course it will get 0 for the
- times downloaded.
-
- Using Addtimes with the CDor Mods:
- ----------------------------------
- The Times Downloaded mod can optionally update the times a file has been
- downloaded in the FMS MASTER.DIR file either while a caller is on line or after
- the caller logs off in an external event file or you RBBS.BAT file. If your
- FMS MASTER.DIR is BIG, you may not want to use the Times Downloaded mod at all
- because the of the time involved. Try it out first and then decide. On a
- 3000 line FMS MASTER.DIR file, it takes a second to let the mod within RBBS
- find a file and update the times downloaded.
-
- Anyway, ADDTIMES can be used externally to update the times downloaded by
- having your RBBS.BAT file or any other "after the caller logs off" batch file
- run ADDTIMES and a unique config file. The mod within RBBS will always make
- a file in the NODE work directory called DOWNLIST.DAT. So, for node 1, you
- could have a line in a batch file do this:
-
- IF EXIST C:\RBBS\NODE%node%\DOWNLIST.DAT QSORT C:\RBBS\NODE%node%\DOWNLIST.DAT
- IF EXIST C:\RBBS\NODE%node%\DOWNLIST.DAT ADDTIMES NODE%node%.CFG
- IF EXIST C:\RBBS\NODE%node%\DOWNLIST.DAT DEL C:\RBBS\NODE%node%\DOWNLIST.DAT
-
- and of course the NODE%node%.CFG file for node 1 would be NODE1.CFG and the
- contents of the NODE1.CFG file would be:
-
- MASTER.DIR <- your FMS MASTER.DIR File to be updated
- 46 <- description length
- C:\RBBS\NODE1\DOWNLIST.DAT <- list of files to be processed
- OUTFILE.DIR <- name not used but line can't be empty
-
- The file DOWNLIST.DAT would contain the names and number of times files were
- downloaded.
-
- WARNING! ADDTIMES should not be used in a MULTI-NODE system!
-
- If this is still too slow, you can call ADDTIMES like this once per day as
- a BBS maintenance event. The mod within RBBS will continue to APPEND to the
- DOWNLIST.DAT file forever.
-
- A disk CACHE will greatly speed things up.
-
- |Operational NOTES:
- |------------------
- |There is a slight difference between the "DOWNLIST.DAT" file created by
- |the CDor modified RBBS code depending on whether or not you have your BBS
- |configured to do Times Downloaded updates while the caller is ONLINE, or
- |after the caller logs off. First, if you update while the caller is online,
- |the DOWNLIST.DAT file is deleted when all files downloaded have been updated
- |in your MASTER.DIR file. The DOWNLIST.DAT file used INTERNALLY only contains
- |the filename of the downloaded file. If ADDTIMES is used for updating the
- |number of times a file has been downloaded, the DOWNLIST.DAT file must
- |contain the filename, a comma (,) and the number of times downloaded:
- |
- |FILENAME.EXT,1
- |
- |Addtimes supports CHAINED FMS directories ONLY when in UPDATE mode. To do
- |an initial modification of CHAINED FMS's with the extra 5 character field,
- |you must do each CHAINED FMS one at a time. After that, ADDTIMES will
- |know it is UPDATING a CHAINED FMS system and handle it all from there.
-
-
- That's It!
- ----------
- Hope this doc is understandable. In summary, you can make ADDTIMES add
- an all 0 times downloaded field to a stock RBBS MASTER.DIR, or you can
- have it add times downloaded from a previously created data file such as
- the one made by UPDN, and finally it is a utility to constantly keep your
- FMS updated with the times downloaded in conjunction with the CDor mod it
- was written for.
-
- DAN DRINNON
-