home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR22
/
MMDUP2.ZIP
/
MMDUP.DOC
next >
Wrap
Text File
|
1993-10-27
|
9KB
|
247 lines
MMDUP2
WHAT IT IS:
This little utility is being released to enable users of the Meal Master
recipe database program to check for records with duplicate recipe titles
in their database. Although Meal Master has a duplicate checker built in
for importing, it is possible for duplicate recipe titles and/or duplicate
recipes to slip into the database during manual importing. (Like many
users, I have a large number of recipes in multiple subdirectories so I
import new recipes manually).
My husband, Neil wrote this small program to save me time checking for
duplicate recipe titles. We have decided to release it into the computing
community as freeware (no registration fee). It may be freely distributed
provided the code is not altered or no fee is charged without the
permission of Neil or Anne MacLellan.
LEGAL STUFF:
We have no connection with Episoft or Scott Welliver and this program is
not endorsed by Episoft. Meal Master is a registered trademark of Episoft
Inc. The authors are not responsible for any damage that may arise to one's
computer or data using this program. (This should not be problem if this
program is obtained from a BBS with reliable virus screening procedures.)
I urge anyone using the shareware version of Meal Master to register the
program with Episoft. It is good program with great support by its author
and he deserves payment for his efforts.
HOW IT WORKS
There are several steps to using MMDUP2.EXE.
MMDUP2.EXE should be put in the same directory as MM.EXE (Meal Master).
1) From within Meal Master, select the Utilities menu. Choose "T" Title
Index and 'O' to change Output to write it to a file (TLINDEX.TXT).
2) Exit Meal Master to the Dos prompt.
3) Type MMDUP2
The following options will appear:
F - write list of duplicate title to file MMDUP.TXT
and display on screen
P - print list of duplicate titles
and display on screen
Press any other key to display duplicate titles on screen only
The program will search for duplicate recipe titles and display them on the
screen along with the number of duplicate recipe titles fond. It will
write them to the file MMDUP.TXT (if desired).
If it does not find any duplicate recipe titles, the following message will
appear.
"No duplicate recipe titles found"
In the event you have forgotten to run a Title Index in Meal Master, the
following message will appear.
"No TLINDEX.TXT found. You must run Meal Master, select the Utilities
Menu, select "T" for Title Index and then "O" to change Output to
file TLINDEX.TXT"
4) The print function assumes that your printer is on LPT1; if you use it
somewhere else you will need to use DOS' mode command. If your printer is
not turned on or online, the following message will appear:
Printer not available
but it will display the duplicate titles to the screen only.
5) The program will end and return you to the DOS prompt. You may then
restart Meal Master, view the records with the duplicate titles (to insure
whether the actual recipes are duplicates or only the titles) and rename
or delete them as you wish. If your databases are like mine, you may find
that you have a lot of duplicate recipe titles but the recipes aren't
duplicates. In this case, you may wish to rename the affected recipe
titles.
PLEASE NOTE:
***
If you have titles in your database that don't begin with the letters a-z
ie. "Brazilian" Iced Coffee
5-Way Chili
You need to change the following item in the Title Index portion of Meal
Master:
F First Letter in Index: A
change to:
F First Letter in Index: !
Now Meal Master's title indexing will include these recipes and MMDUP will
be able to check them for duplication.
Thank you to Karen Mintzias for bringing this to my attention.
***
SEARCHING ACROSS MULTIPLE DIRECTORIES : new to version 2
For those "keeners" like myself who have thousands of recipes spread
across several subdirectories...
Thanks to a suggestion from Rodney Grantham, MMDUP2 now searches across
multiple subdirectories (for those with a large amount of recipes who
have divided them into different subdirectories).
It isn't elegant but it doesn't alter your Meal Master indexes which is
really the safest approach.
The steps involved in this are similar to above but take more time;
1) From within Meal Master, select the Utilities menu. Choose "T" Title
Index and 'O' to change Output to write it to a file (TLINDEX.TXT).
2) Exit Meal Master to the Dos prompt.
3) Rename TLINDEX.TXT to another name, use something easy to remember. I
found it easiest to use the name of the subdirectory (ie. dessert.txt,
ethnic.txt or what ever)
The DOS command would be:
REN tlxindex.txt dessert.txt
OR:
RENAME tlxindex.txt dessert.txt
4) Restart Meal Master (MM); from within Meal Master, select the Utilities
menu. Choose "T" Title Index and 'O' to change Output to write it to a file
(TLINDEX.TXT).
5) Exit Meal Master to the DOS prompt
6) Type MMDUP2 recipes.txt tlxindex.txt
Please note one of the title index index files must be called tlindex.txt
for the program to run.
The following options will appear:
F - write list of duplicate title to file MMDUP.TXT
and display on screen
P - print list of duplicate titles
and display on screen
Press any other key to display duplicate titles on screen only
(I would strongly suggest one of the first two options if you are checking
duplicates across several subdirectories), so you can print out the list to
examine it. I have far more duplicates across subdirectories than I do
within a single subdirectory.)
The program will search for duplicate recipe titles and display them on the
screen along with the number of duplicate recipe titles fond. It will
write them to the file MMDUP.TXT (if desired).
If it does not find any duplicate recipe titles, the following message will
appear.
"No duplicate recipe titles found"
In the event you have forgotten to run a Title Index in Meal Master, the
following message will appear.
"No TLINDEX.TXT found. You must run Meal Master, select the Utilities
Menu, select "T" for Title Index and then "O" to change Output to
file TLINDEX.TXT"
7) The print function assumes that your printer is on LPT1; if you use it
somewhere else you will need to use DOS' mode command. If your printer is
not turned on or online, the following message will appear:
Printer not available
but it will display the duplicate titles to the screen only.
8) The program will end and return you to the DOS prompt. You may then
restart Meal Master, view the records with the duplicate titles and rename
or delete them as you wish. If your databases are like mine, you may find
that you have a lot of duplicate recipe titles but the recipes aren't
duplicates. In this case, you may wish to rename the affected recipe
titles.
At this time, it only is able to compare two subdirectories at a time.
A SPECIAL THANK YOU
Neil and I want to send a special thank you to Rodney Grantham, who helped
suggest a way of checking across multiple subdirectories and gave us
suggestions regarding the source code.
Rodney is the author of a Meal Master utility called MMCONV which will
convert Quikbook recipes and "free form" recipes (two forms which are not
handled by the CONVERT program supplied with Meal Master. It will also add
the name of the poster if the recipe was posted in an online cooking
conference.
It is well worth the very reasonable registration price.
Rodney may be reached at:
Rodney Grantham
770 Cranberry Tr.
Roswell, GA 30076
USA
We have never met Rodney, but consider him an online friend. If you haven't
explored the online cooking conferences, they are a great way of acquiring
and sharing recipes as well as sending messages to other people with same
interests.
VERSION CHANGES
MMDUP v.1
original program
MMDUP2
-corrected small bug in code "comments"
-now searches across multiple directories
-now prints directly to a printer on LPT1
In the future, we hope to find a way to not run the program only from the
command line when comparing two subdirectories and perhaps to compare more
than two subdirectories at the same time.
Hope that you find this program as useful as I have.
Anne MacLellan
Toronto, Ontario, Canada.