home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM Hot Dots 3.0 Menu options 1, 2, 3, and 4.
- REM import, translate, format, and output
- REM Written by David Holladay and Caryn Navy
-
- if %hotpath%&==& set hotpath=C:\HOTDOTS
- if %1&==& goto dox
- if %1==? goto dox
- if %3&==& 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 %4&==& goto ruleok
- if exist %4 goto ruleok
- echo Your optional rules file %4 does not exist.
- goto final
- :ruleok
- if %3==com1 goto serial
- if %3==com2 goto serial
- if %3==COM1 goto serial
- if %3==COM2 goto serial
- goto devyes
- :serial
- if %3==com1 mode com1:96,n,8,1,p >nul
- if %3==com2 mode com2:96,n,8,1,p >nul
- if %3==COM1 mode com1:96,n,8,1,p >nul
- if %3==COM2 mode com2:96,n,8,1,p >nul
- REM lets finally do something!
- :devyes
- if %hdwidth%&==& set HDWIDTH=40
- if %hdform%&==& set HDFORM=25
- import %1 1234 %2 %3 %4
- goto final
- :dox
- echo This batch file has 3 or 4 parameters
- echo 1 -- file name
- echo 2 -- Word processing file code (example: WordPerfect 4.2 code is WPF4)
- echo 3 -- Output device designation (examples: COM1, LPT1, or CON)
- echo 4 -- (optional) rules file to be used before translation
- echo ---
- echo This batch file takes your file through options 1, 2, 3, and 4
- echo of Hot Dots 3.0.
- echo These steps are file importation, braille translation, formatting,
- echo and braille output.
- echo ---
- echo Example: DOTS1234 FISHY.DOC WPF4 COM1
- echo This batch file takes your file (which was created by WordPerfect 4.2)
- echo and creates two new files in your current directory:
- echo FISHY.HD$ -- uncontracted with Hot Dots $$ commands
- echo FISHY.BFM -- contracted, formatted and ready for your embosser
- echo The file FISHY.BFM is sent to the designated device COM1
- :final
-