home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
makebook.zip
/
makebook.doc
< prev
next >
Wrap
Text File
|
1995-04-14
|
9KB
|
203 lines
MAKEBOOK.CMD
Version 2.1
April 14, 1995
By: Derek Berube
<DCybertek@aol.com>
Package Contents
================
MAKEBOOK.CMD the actual REXX program.
MAKEBOOK.DOC the document you now have in your hands (or your favorite
editor).
MAKEBOOK.ICO the nifty designer icon for MakeBook
REGISTER.FRM MakeBook registration form
About MAKEBOOK
==============
MAKEBOOK.CMD is a REXX utility designed to create icons for the
on-line documents located on your OS/2 system. This utility will search
all available drives (including network drives) for OS/2 .INF files and
create icons for them with the appropriate titles.
MAKEBOOK.CMD uses the following logic process when it searches your
hard disk for .INF files:
1.) MAKEBOOK.CMD starts with the root directory of drive C: and searches all
available subdirectories for files with a .INF extension.
2.) When MAKEBOOK.CMD obtains a listing of all files on drive C: with an .INF
extension, it compares the filename with two different lists of .INF file
names.
a.) The first list MAKEBOOK.CMD uses is a listing known OS/2 .INF
files and their corresponding titles. When MAKEBOOK.CMD finds a
match in this list, the name of this book is automatically set to the
appropriate title for the book.
b.) If an .INF file name is not found in the first list, MAKEBOOK.CMD
checks with a second list. The second list contains the names of
files that are not OS/2 on-line books but do end with an .INF
extension. MAKEBOOK.CMD will display a message that the file found
is not an OS/2 on-line book and an icon will not be created.
If an .INF file is not found in either of the above lists, an icon will
be created for the book using the file name as the title.
3.) All icons will be created in a folder created on your OS/2 desktop titled
"MAKEBOOK.CMD - Find Results."
Modifying MAKEBOOK.CMD
======================
MAKEBOOK.CMD is a REXX utility which means it is an ASCII text file
that you can modify. Should you decide to modify MAKEBOOK.CMD, please do not
distribute the modified version (i.e., don't post the modified version on a
BBS). If you make changes to MAKEBOOK which you feel would be of benefit to
others, please send the modifications to me so I can make them in the master
copy thereby keeping consistency with all the versions of MakeBook which
are in circulation.
The logic used by MAKEBOOK.CMD is a simple SELECT statement. The
following is an example from the list of known .INF files:
when BookName="REXX.INF" then do
BookName="REXX Information"
FolderName="OS/2 Documentation"
FolderID="<MB_OS2>"
end /* do */
BookName - the title of the INF file
FolderName - the name of the folder this INF is to be placed in
FolderID - the Workplace shell ID of the folder (REQUIRED)
The FolderName field is used to specify the name of the folder the
object is to be placed in. When specifying a folder name, you must also
specify a folder ID which must be in the following format:
<folder_id>
You may change the folder_id text to anything of your choice; however, you
must have brackets (< >) on both sides of the folder_id. This is a workplace
shell construct and if you do not follow these guidelines when modifying
the MAKEBOOK.CMD utility, it may not function properly.
The following is an example from the list of files with a .INF extension which
are not OS/2 .INF files:
when BookName="OEMSETUP.INF" then Say "OEMSETUP.INF"NADA
NOTE: NADA is a variable used to store the generic text string "is not an OS/2
on-line book" This is used in order to keep the size of MAKEBOOK.CMD
down to a minimium.
The BookName variable is a global variable which initially holds the file name
of the .INF file in question. The value of BookName will change depending on
whether the file name is found in either of the lists.
Multiple Line Titles
====================
If you want the book's title to be split into several lines, place
the string "||"0a"x||" at the point where you want the line break to occur.
For example:
when BookName="MEMORY.INF" then BookName="Blake Payne's"||"0a"x||" Memory
Management Handbook"
In the above sample line (taken from MAKEBOOK.CMD), the titile of the book will
be:
Blake Payne's
Memory Management Handbook
Registration
============
This is probably the last version of MakeBook that I will be
circulating as shareware. From now on, all future updates to this utility
will be distributed to registered users only. If you find this to be a
useful utility, I would encourage you to register your version. I have
spent a lot of time and energy developing this little utility, and if you
are benefiting from all that laborious work the best way to thank me would
be to register :-) !
** Registered Version Features **
* PM version Application with complete online help
- Easily modify or add INF titles and folders through a user-friendly
interface!
- Multimedia support! (Hey...if you have it, why not use it!)
- Any other nifty bells and whistles I can think of!
* Free updates to the most recent revision!!
As you can see (look down a bit...) the registration fee is realatively
inexpensive!! Unfortunately, I want to make a little money off of this,
so I have two different registration options:
$10 for electronic distribution of all updates to MakeBook
Since it doesn't cost me anything to send out email, I'll send you
updates to the most recent version of MakeBook as soon as I receive
your registration form and check or money order. You'll get an update
to the most recent version of MakeBook once every three months.
$20 for snail mail distribution of all updates to MakeBook
Since it costs money to send stuff through the US Postal Service,
I will send you an update to the MakeBook utility on diskette every
three months. The extra $10 ($2.50 per update) will cover the cost of
the diskettes, the diskette mailers, and the postage.
The one year period starts from the moment I receive your
registration form. I'll immediately send you your first update on a
brand new floppy diskette! For this distribution method, please
allow 2-3 weeks for your first update.
PLEASE DO NOT SEND CASH! Use check or money order and make it payable to
DEREK BERUBE. Send your payment along with the completed registration form
(REGISTER.FRM) to:
Derek Berube
P.O. Box 48013
Athens, Georgia 30604
Thanks in advance!
Remember...registering the software you use makes you feel all warm
and fuzzy inside!
History
=======
03.16.93 v1.00
* Initial Release
07.07.93 v1.01
* Fixed a problem with parameters field of the object that is created.
The drive on which the .INF file resides is not included in the
parameters section; therefore, when you go to look at the
book, you get an error that "Cannot open input files."
07.27.93 v1.02
* Fixed a problem with the Express Setup query in that it would not
recognize the capital letter Y or N. The Express Setup option will
no longer echo your key to the screen.
09.07.93 v1.03
* Added .INF file names for the IBM 2.1 Developer's Toolkit
* Added .INF file names for IBM C/Set++ Reference Manuals
* Added .INF file names for miscellaneous applications
* Made some titles multiple lines by adding the string
"||"0a"x||" to the line. This adds a 'newline character' to
the program title.
12.27.93 v1.03
* I only added a couple of more titles to the utility's database, so
I didn't think that incrementing the version number was in order.
04.12.94 v1.04
* I made a significant update to the titles in the utility's database.
11.22.94 v1.05
* I made yet another update to the titles in the utility's database.
Includes OS/2 Warp v3.
01.02.95 v2.0
* Includes support for folders now! Now instead of all objects being
placed in the "MakeBook - Find Results" folder they will be placed
in specific folders inside the main MakeBook folder.
04.14.95 v2.1
* Updated the title database some more and also optimized the use of
folder creation.
==============================================================================
THIS UTILITY IS SHAREWARE. PLEASE FEEL FREE TO DISTRIBUTE THE ORIGINAL
MAKEBOOK.ZIP ARCHIVE, UNMODIFIED, TO ANYONE YOU CHOOSE. PLEASE DO NOT
MODIFY AND DISTRIBUTE THIS UTILITY. IF YOU HAVE ANY SUGGESTIONS, PLEASE
SEND THEM TO: DCYBERTEK@AOL.COM RATHER THAN MODIFYING THE ORIGINAL REXX
SCRIPT. THIS WILL HELP ME TO MAINTAIN CONSISTENCY WITH THE REVISION
NUMBERS.
==============================================================================