home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM Hot Dots 3.0 Menu option 1 (file importation)
- REM Written by David Holladay and Caryn Navy
-
- if %hotpath%&==& set hotpath=c:\hotdots
- if %1&==& goto dox
- if %1==? goto dox
- if %2&==& goto dox
- if exist %1 goto datayes
- echo This batch file is looking for a file called %1
- echo created by your word processor
- echo %1 is not found (perhaps you can find it).
- goto final
- :datayes
- if exist %hotpath%\imp1.rul goto progyes
- echo This batch file assumes that Hot Dots is located in %hotpath%.
- echo The file %hotpath%\IMP1.RUL is not found. Please change
- echo this and other batch file to reflect the location
- echo of your Hot Dots software.
- goto final
- :progyes
- if %3&==& goto ruleok
- if exist %3 goto ruleok
- echo Your rules file %3 does not exist.
- goto final
- :ruleok
- import %1 1 %2 0 %3
- goto final
- :dox
- echo This batch file has 2 or 3 parameters
- echo 1 -- file name
- echo 2 -- Word processing file code (example: WordPerfect 4.2 code is WPF4)
- echo 3 -- (optional) rules file to be used before translation
- echo ---
- echo This batch file takes your file through option 1 of Hot Dots 3.0
- echo This is the file importation step to create an HD$ file.
- echo ---
- echo Example: DOTS1234 FISHY.DOC WPF4
- echo This batch file takes your file (which was created by WordPerfect 4.2)
- echo and creates one new files in your current directory:
- echo FISHY.HD$ -- uncontracted with Hot Dots $$ commands
- :final
-