home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM Hot Dots 3.0 Menu options 2, 3, and 4.
- REM 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 %2&==& goto dox
- if exist %1.hd$ goto datayes
- echo This batch file is looking for a file called %1.HD$
- echo created by your word processor
- echo %1.HD$ is not found (perhaps you can find it).
- echo Don't forget -- leave off the .HD$ with DOTS234
- 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 %2==com1 goto serial
- if %2==com2 goto serial
- if %2==COM1 goto serial
- if %2==COM2 goto serial
- goto devyes
- :serial
- if %2==com1 mode com1:96,n,8,1,p >nul
- if %2==com2 mode com2:96,n,8,1,p >nul
- if %2==COM1 mode com1:96,n,8,1,p >nul
- if %2==COM2 mode com2:96,n,8,1,p >nul
- :devyes
- if %hdwidth%&==& set HDWIDTH=40
- if %hdform%&==& set HDFORM=25
- import %1.hd$ 234 0 %2
- goto final
- :dox
- echo This batch file has 2 parameters
- echo 1 -- file name without extension (source file must have hd$ extension)
- echo 2 -- Output device designation (examples: COM1, LPT1, or CON)
- echo ---
- echo This batch file takes your file through options 2, 3, and 4
- echo of Hot Dots 3.0.
- echo These steps are file braille translation, formatting, and braille output
- echo ---
- echo Example: DOTS234 FISHY COM1
- echo This batch file takes the FISHY.HD$ file and creates one new file in
- echo your current directory:
- echo FISHY.BFM -- contracted, formatted and ready for your embosser
- echo The file FISHY.BFM is sent to the designated device COM1
- :final
-