home *** CD-ROM | disk | FTP | other *** search
- FMSFFS RBBS FMS/FFS utility for RBBS
- Version 2.0 BETA
- Copyright (c) 1993 Daniel T. Drinnon
- Contact The Cellar Door (505) 763-1795
-
- Note: this is a BETA production! Use it at your own risk! It's used
- nightly on the Cellar Door, but that's no guarantee - it's one way of
- finding unsuspected bugs! Remember that this program is not finished
- and may not handle your specific FMS structure. This program is released
- as is for your use as there are no other RBBS FMS utilities to handle the
- Cellar Door (CDor) mods to RBBS's FMS structure.
-
- I still have a few more things to do to this program, mainly speed it up a
- little as it actually runs a little slower than the BASIC version when it
- is building the MASTER.DIR files. However, it does fix the OVERFLOW problems
- that the BASIC version had before.
-
-
- Purpose: The FMSFFS is used to handle your CDor modified MASTER.DIR file.
- You only need to use it for FMS maintenance when using the Times Downloaded mod.
- Otherwise, I highly recommend that you use RFM until this program is further
- developed. FMSFFS can also be used on Stock non-cdor, non-rfm type fms/ffs
- systems as well.
-
-
- Useage: FMSFFS [configname]
- If no config name is used, then the default is FMSFFS.CFG
-
- Using the first time: Try putting FMSFFS.EXE, FMSFFS.CFG and your FMS
- MASTER.DIR file in a separate subdirectory. Edit the FMSFFS.CFG file to reflect
- your DOWNLOAD directories and FMS description length and run it, making sure
- QSORT is in your path. When done, compare the MASTER.DIR file with it's
- original file which would be MASTER.BAK. If they are the same or nearly the
- same, then it worked. If you are using the Times Downloaded mod, then after you
- have added the 5 character field to the MASTER.DIR file (using ADDTIMES), edit
- the FMSFFS.CFG file's FMSExtra parameter and run again. Hopefully it all went
- well. There is no processing error checking installed yet for programming
- purposes. If you get an OVERFLOW error then chances are the description lengths
- in the FMS don't match what you put in the config file.
-
-
- The FMSFFS.CFG file: Rather than get too extensive twice, I will go by each
- parameter available in the FMSFFS.CFG file and what to do with them. The order
- of things in the FMSFFS.CFG file do not matter, and many options have built in
- defaults. All options are listed in the config file to help me with the
- creation of the program.
-
-
- FILE_ID.DIZ Support: Currently, the 2.0 version of FMSFFS will only look in
- .ZIP files for FILE_ID.DIZ files. The search routine is all internal and is
- alot faster than the version 1.0.
-
- Starting from scratch - You can build an all new MASTER.DIR file! FMSFFS will
- create a MASTER.DIR file if none exists before and will put <Description not
- available> in for the description. To use the FILE_ID.DIZ for the description,
- you must run FMSFFS 2 times! The first time will build the one line per file
- MASTER.DIR, then after you uncomment the FILEID in FMSFFS.CFG, FMSFFS will then
- insert descriptions for every file listed in MASTER.DIR that has a FILE_ID file.
-
- Please go through your config file and make the appropriate changes! Remember
- to test this program on a backup the first time. If it messes up, try it again.
-
-
- The FMSFFS.CFG config file:
-
- ; Configuration file for FMSFFS, version 2.0b
- ; Copyright (c) 1993 Daniel T.Drinnon
- ; Lines beginning with ';', '-' or "*" are interpreted as comments and are
- ; ignored
- ; Lines which are BLANK are ignored
- ;
- *==============================================================================
- ; RegName and RegNum should only be used with Registered Copies!
- ; DEFAULT: UnRegistered
- ;
- RegName Dan Drinnon
- RegNum 32382
- *==============================================================================
- ; WorkDir is the path and directory for all work files
- ; DEFAULT: Current DOS directory ** NOT ENABLED YET **
- ;
- WorkDir C:\TEMP
- *==============================================================================
- ; UseEMS will allow EMS to be used when shelling
- ; DEFAULT: Use EMS and/or XMS
- ;
- UseEMS
- *==============================================================================
- ; UseXMS will allow XMS to be used when shelling (UseXMS will override UseEMS)
- ; DEFAULT: Use EMS and/or XMS
- ;
- ;UseXMS
- *==============================================================================
- ; NoSwap will keep FMSFFS from swapping itself to disk or memory when shelling
- ; DEFAULT: Swap to EMS and/or XMS
- ;
- ;NoSwap
- *==============================================================================
- ; Sorter is the name of the SORT program to use
- ; DEFAULT: QSORT
- ;
- Sorter QSORT
- *==============================================================================
- ; DateSort is the command line to send to Sorter to do a FMS date sort
- ;
- DateSort /30:2 /24:5 /-1
- *==============================================================================
- ; Interactive will prompt for information when needed. Note! If interactive
- ; is on FMSFFS will stop until you enter the information it needs!
- ; ** NOT ENABLED YET **
- ;
- Interactive
- *==============================================================================
- ; NoNoise turns off activity noise
- ;
- ;NoNoise
- *==============================================================================
- ; RestoreScreen will replace the screen that was in place before FMSFFS began
- ;
- ;RestoreScreen
- *==============================================================================
- ; NameFile is the name of the list of files
- ;
- NameFile FIDX.DEF
- *==============================================================================
- ; LocationFile is the name of the list of locations for files
- ;
- LocationFile LIDX.DEF
- *==============================================================================
- ; TabFile should be the prefix of your NameFile + "T.DEF"
- ;
- TabFile FIDXT.DEF
- *==============================================================================
- ; BulletinFile is the name of the Bulletin file to create to display files
- ; which will be deleted after given number of days. Note: ONLY ONE Bulletin
- ; file is created! It will use CDor 16 color SmartText color commands.
- ;
- BulletinFile BFILES 10
- *==============================================================================
- ; MakeRFM will create an RFM style NameFile (use only if your RBBS has been
- ; modifed for RFM type FIDX files).
- ;
- MakeRFM
- *==============================================================================
- ; list as many as you have (DOS) directories where you want
- ; all the files in them listed. /S searches 1 (one) subdirectory
- ; below the current subdirectory.
- ; If you are using RFM style FIDX files, then you may also enter the
- ; subdirectory to move files which have not been downloaded or viewed
- ; after the number of days specified
- ;
- ;
- FileSpec C:\RBBS\UPLOAD\*.* 30 C:\RBBS\DOWNLOAD
- FileSpec C:\RBBS\DOWNLOAD\*.* /S
- FileSpec D:\RBBS\DOWNLOAD\*.* /S
- ;
- ; In the above, files that have been in the C:\RBBS\UPLOAD subdirectory will
- ; be automatically moved to C:\RBBS\DOWNLOAD after 30 days. The BFILES
- ; bulletin will list the files which will be moved starting 10 days before
- ; the actual date the files will be moved.
- ;
- *==============================================================================
- ; If you are using macros in your FMS, such as "Directory of M! FILES.DEF" you
- ; must tell FMSFFS what to look for:
- ;
- ;
- DirString Directory of
- *==============================================================================
- ; List as many as you have of text files with file names in
- ; them. The file name must be at the beginning of each line.
- ; The first line of any FileDir path must consist of the DirString string.
- ;
- ;FileDir C:\RBBS\DIR\HACKS.DEF
- ;FileDir C:\RBBS\DIR\UNWANT.DEF
- ;FileDir C:\RBBS\DIR\PIRATES.DEF
- *==============================================================================
- ; FMS.DIR Maintenance - NOTE: If FMSFile is not ENABLED, none of
- ; the FMS maintenance features will
- ; be active either!
- *==============================================================================
- ; FMSFile is the name of your main FMS file list -Turns ON ALL FMS Maintenance!
- ;
- FMSFile MASTER.DIR
- *==============================================================================
- ; FMSFormat blank = Date Sorted, TOP, NOSORT = not Date Sorted
- ; ** NOTE - use blank, any other FMSFormat can be placed in the first line
- ; of your MASTER.DIR file instead of here - there are problems
- ; when using FMSFormat NOSORT as shown below! **
- ;
- ;
- FMSFormat
- ;FMSFormat NOSORT
- *==============================================================================
- ; FMSAlpha is the name of an alphabetically sorted list from FMSFile
- ; ** NOTE - Specifying an ALPHA file listing will decrease the operational
- ; speed of FMSFFS due to the fact that it is creating an extra
- ; output file **
- ;
- ;
- ;FMSAlpha ALPHA.DIR
- *==============================================================================
- ; FMSAlphaHeader is the RBBS \FMS style header you want at the top of ALPHA.DIR
- ; DEFAULT: none
- ;
- ;FMSAlphaHeader \FMS TOP NOSORT
- *==============================================================================
- ; FMSDate no parmaters will use the current FMS file date. Use "." to use
- ; actual file date. Any files which have an illegal DOS date, such as
- ; 01-30-60 or any files which have a DOS date greater than the current date
- ; will use the MASTER.DIR date or the current date, depending on what is
- ; set in FMSDate. If you use the ".", then these dates will be set to the
- ; current date.
- ;
- FMSDate
- ;FMSDate .
- *==============================================================================
- ; DateSeparator is the character to use between the number is the date field
- ;
- ;DateSeparator -
- *==============================================================================
- ; FMSMissing will substitute a string you specify for missing files
- ;
- ; ** NOT COMPLETLY TESTED **
- ;
- ;FMSMissing Offline
- *==============================================================================
- ; UnknownDesc is the description given for unknown files
- ;
- UnKnownDesc <description unavailable>
- *==============================================================================
- ; FILEID will look for FILE_ID.DIZ in all files and import to the
- ; extended description
- ;
- ;FILEID FILE_ID.DIZ
- *==============================================================================
- ; FileIdMainDesc is the main description given to files with a FILE_ID.DIZ
- ; If you enable FILEID or FileIdMainDesc, then FMSFFS will look for FILE_ID
- ; files. If you enable FileIdMainDesc, then whatever the string is for this
- ; option will be used for the main description. If it is disabled, then the
- ; FIRST line of the FILE_ID.DIZ file will be the main description and the
- ; remaining lines will be placed in the extended description.
- ;
- ;
- ;FileIdMainDesc Description within Archived File:
- *==============================================================================
- ; FMSCat is the default category assigned to any files added to FMSFile
- ;
- FMSCat 999
- *==============================================================================
- ; FMSDescLen is the length of the description as set in RBBS's CONFIG
- ;
- FMSDescLen 46
- *==============================================================================
- ; FMSExtra is any extra characters in FMSFile between the description
- ; and the category code. The Cellar Door mods can keep the number of
- ; times a file has been downloaded in this area with 5 characters - leave
- ; this a 5 if you are using the Times Downloaded Cdor mod!
- ;
- FMSExtra 5
- *==============================================================================
- ; FMSCatLen is the length of the category code in the FMSFile. Leave at
- ; 3!
- ;
- FMSCatLen 3
- *==============================================================================
- ; ZIPCommand is the command to unzip files from a ZIP file
- ;
- ZIPCommand PKUNZIP
- *==============================================================================
- ; ARCCommand is the command to unarc files from an ARC file
- ; ** Not Installed! **
- ;
- ;ARCCommand PKXARC
- *==============================================================================
- ; LZHCommand is the command to unlzh files from an LZH file
- ; ** Not Installed! **
- ;
- ;LZHCommand LHARC e
- *==============================================================================
- ; ARJCommand is the command to unarj files from an ARJ file
- ; ** Not Installed! **
- ;
- ;ARJCommand ARJ e
- ;
- ;[end of config file]
-
- ===============================================================================
- NOTES: The FILE_ID, and FileIdMainDesc will decrease the speed tremendously
- because FMSFFS has to check each file in your MASTER.DIR file for these files.
- Normally, you should only use this option once. Note that if a file aready
- has an extended description, then NO ATTEMPT will be made to search for a
- FILE_ID file for that particular file!
-
- Chained FMS files are supported!
-
- ALWAYS use a disk cache! This will greatly help the speed. The WorkDir
- option is not enabled yet, but will soon be...
-
- When FMSFFS runs, it creates .BAK files of the FIDX.DEF, FIDXT.DEF, LIDX.DEF,
- MASTER.DIR and ALPHA.DIR files. If you need to STOP FMSFFS, simply press
- CTRL-C or CTRL-BREAK! You will asked to verify to quit, and if you hit enter
- or Y then FMSFFS will restore the original *.DEF files and MASTER.DIR file
- and clean up any work files it may have created.
-
- * REMEMBER to always test things out first. Run this program over your MASTER
- * DIR file many times. On my 386-40 with smartdrv it takes just over 2 minutes
- * to process 2500 files with 120 extended descriptions.
-
- More on DATES: It is not an option that a file that gets updated physically
- will get a new date in the MASTER.DIR file.
-
- Scanning Directories: When using the /S option with the FileSpec line,
- subdirectories are only searched one subdirectory below the subdirectory
- specified. For example:
-
- FileSpec C:\RBBS\DOWNLOAD\*.* /S
-
- IF the following subdirectories are below C:\RBBS\DOWNLOAD:
-
- C:\RBBS\DOWNLOAD
- C:\RBBS\DOWNLOAD\H
- C:\RBBS\DOWNLOAD\R
- C:\RBBS\DOWNLOAD\R\W
-
- the subdirectory C:\RBBS\DOWNLOAD\R\W will NOT be scanned.
-
- Future revisions will scan all the way to the end...
-
- THE FMSFile parameter TURNS ON ALL FMS Maintenance. If it is commented out,
- then only the FIDX.DEF, LIDX.DEF and FIDXT.DEF files are made.
-
- SPEED TIP: Anytime the FIDX.DEF is changed from non-RFM to RFM style, speed
- will greatly decrease.
-
-
- The FMSFFS program relies a LOT on specially sorted lists as it runs. It
- Makes 3 other temporary files which get deleted when completed. These are:
- MASTER.SRT - special sorted file
- MASTER.WRK - copy of original MASTER.DIR work file with extended line info
- MASTER.EXT - stored extended descriptions file
-
- History:
- 0619 - * Initial BETA release
- 0626 - * Fix for extended descriptions with same dates in a date ordered
- FMS but NOT in alpha order as secondary sort causing problems.
- * Fix for FMSDate "." option
- 0710 - * some fixes for creating final master.dir file with no ext. desc.
- 0731 - * Beta release of version 2 Beta
- 0801 - * fix for alpha.dir header and format output
- * fix for \FMS lines
- * fix for entries in FMS.DIR not online trashing FMS.DIR
- * enabled FMSMissing Option
- 0802 - * fix for rfm type fidx file going skewed with unlisted files
- 0808 - * fix for invalid DOS filedates when using FMSDate .
-
-