home *** CD-ROM | disk | FTP | other *** search
-
-
- PRFP 1.00 - The Pseudo-Random File Picker
- Copyright 1993, Bert Edens
- All Rights Reserved
-
-
- What is PRFP? (or, why bother with a random file picker?)
-
- PRFP is a utility that will use a specified configuration file to
- pick random files. PRFP was developed due to the lack of utilities
- available to select random files for menus and such on my BBS.
- There are a couple of utilities available, but they are much more
- limited than PRFP. I could have made PRFP allow unlimited files to
- choose from, but as a sysop, I know that I wouldn't want to deal with
- more than 700 ANSI files so that's the limit. One of the things I
- like about PRFP is you don't have to tell it in advance how many files
- it has to choose from. I figure a program should be smart enough to
- know how to count. :)
-
- Configuration Information, etc. (or, how to make this puppy work)
-
- PRFP is controlled by a configuration file that is a simple sequential
- text file. The default filename that PRFP looks for is PRFP.CFG. This
- file must be in the current directory. You can also specify a
- configuration filename at the command line by typing:
-
- PRFP <filename>
-
- This is one way to specify a file that is not in the current directory.
- PRFP will allow full pathnames. So, you could enter:
-
- PRFP C:\CONFIGS\PRFP0001.CFG
-
- if you wanted and, providing the file actually existed, PRFP would find
- it. PRFP has three basic line formats that it can read from the config
- file:
-
- (1) . <Extensions to be copied>
-
- With this format, you can specify which extensions are to be copied
- to the destination filename (see below). There MUST be a space
- between the "." and the extensions for PRFP to operate properly.
- Each extension should NOT have a leading ".". For example, if you
- wanted to copy three extensions: "ASC", "ANS", and "AVT", the
- line would look like:
-
- . ASC ANS AVT
-
- Only ONE "." line can be specified per file. Generally, if you are
- copying files such as screens, the extensions would be consistent.
- If there is enough demand for it, I may implement more flexibility
- here.
-
- (2) * <Destination filename>
-
- With this format, PRFP will load in the specified filename as the
- current filename that the picked files are to be copied to. There
- MUST be a space between the "*" and the filename. If not, PRFP will
- not operate properly. You must also exclude the extension from the
- filename. Full paths may be used as long as the extension is not.
- An example of what this line might look like is:
-
- * C:\RA\TXTFILES\WELCOME
-
- Everytime a "*" line is encountered, PRFP will begin storing files
- for the new destination filename. Up to 100 destination filenames
- may be defined.
-
- (3) <Filenames>
-
- Any non-blank line that does not begin with "*" or "." will be
- assumed to be a filename that is to be added to the list of files
- to be chosen from. A sample line might look like:
-
- C:\RA\TXTFILES\WELCOM01
-
- Up to 700 filenames and destination filenames COMBINED may be used.
- At the very most (assuming someone would actually HAVE that many
- files to pick from :-), you could have 100 destination filenames and
- 600 files to choose from. You could also have 1 destination filename
- and 699 files to choose from. As long as the total number of files
- does not exceed 700 (and the number of destination filenames does
- not exceed 100 as stated above), you are in good shape. PRFP HAS been
- tested with one destination filename and 699 files to choose from and
- it DOES work. By the way, the smallest window I could get PRFP to run
- in was 211K. That held true whether I had to choose from 699 files
- or just 2.
-
- A sample configuration filename might look like (the display is indented
- for COSMETIC PURPOSES ONLY; ALL CONFIG FILE LINES SHOULD START IN COLUMN
- ONE):
-
- . ASC ANS AVT
- * C:\RA\TXTFILES\WELCOME
- C:\RA\TXTFILES\WELCOM01
- C:\RA\TXTFILES\WELCOM02
- C:\RA\TXTFILES\WELCOM03
-
- A sample PRFP.CFG has been included in this archive for your benefit.
-
- Error handling, etc. (or, other miscellaneous technical rot)
-
- PRFP has been designed to behave very specifically. It will notify you
- if one of the files you have specified to be chosen from does not exist
- (with the appropriate extension attached). It will also notify you if it
- can not find the specified configuration file (whether it be user-defined
- or the default PRFP.CFG). When PRFP copies a file, the destination file
- becomes identical to the chosen file, right down to the file date and
- time. If anyone requests the change, I will consider changing it so that
- the destination file date and time will be "touched" to the current date
- and time.
-
- Bug Reports, etc. (or, how to contact the guy who wrote this thing)
-
- As of January 1993, I am located in Springdale, Arkansas, USA. My current
- FidoNet address is 1:391/1160. If you're a FamilyNet person, it's
- 8:391/1160. Regardless, you can always find me in the FidoNet nodelist as
- "Bert_Edens". I run a 24 hour BBS, so netmail to me should be no problem.
-
- Thanks, etc. (or, who should be mentioned for legal sakes)
-
- - PRFP 1.00, the Pseudo-Random File Picker was written using Borland's
- Turbo Pascal 6.0.
-
- *************************************************************
- * *
- * A big thanks to Professor Timo Salami of University of *
- * Vaasa, Finland, for the use of some of his Turbo Pascal *
- * routines. Without them, PRFP would not be the same *
- * as it is now. You can find these great routines on the *
- * Internet at garbo.uwasa.fi, or stateside at *
- * wuarchive.wustl.edu under the filename TSPA*.ZIP, where *
- * the wildcard is the current revision of the routines and *
- * the version of Turbo Pascal that the routines are for. *
- * For example, version 30 of the routines for Turbo Pascal *
- * 6.0 would be under the filename TSPA3060.ZIP. *
- * *
- *************************************************************
-
- Necessary Legalities, etc. (or, how to keep you and I out of court)
-
- By using PRFP, you agree to the following:
-
- The author, Bert Edens, disclaims all warranties, expressed or
- implied, including, without limitation, the warranties of
- merchantability and of fitness for any purpose. The author assumes
- no liability for damages, direct or consequential, which may result
- from the use of PRFP.
-
- PRFP is copyrighted material by Bert Edens.
-
- This product is HungerWare: You may use it for as long as you like
- without feeling obliged to pay for it. However, the HungerWare comes into
- play when it helps feed a starving Shareware Author. :) If you were to
- send money, feel free to send whatever you feel PRFP is worth. If you
- choose to donate, please do so in US funds. If you cannot send money,
- feel free to send a postcard from wherever you call home. Even though
- you are not required to pay for this package, I would still consider
- "trading" registrations with other shareware authors.
-
- You are allowed to copy and distribute this package, providing that you
- make no charges other than are necessary for copying, materials and
- handling. The files must not be separated or altered in any way
- whatsoever including reverse engineering. Use of a hacked or altered
- version of PRFP is also a violation of said copyright.
-
- There are no registered features to PRFP. The author believes that the
- product could not have registered features without seriously crippling
- the evaluation version. The only benefit you receive is comfort in the
- knowledge that you have helped to keep the shareware concept alive.
-
- The author, Bert Edens, is in no way obliged to give future support for
- any version of PRFP.
-
- If you don't agree with these rules, you may NOT use PRFP!
-
- Thank you for your support...