home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / HANDICAP / HOTDOTS3.ZIP / DOTS234.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-03-21  |  1.8 KB  |  54 lines

  1. @echo off
  2. REM    Hot Dots 3.0 Menu options 2, 3, and 4.
  3. REM    translate, format, and output
  4. REM    Written by David Holladay and Caryn Navy
  5.  
  6. if %hotpath%&==& set hotpath=c:\hotdots
  7. if %1&==& goto dox
  8. if %1==? goto dox
  9. if %2&==& goto dox
  10. if exist %1.hd$ goto datayes
  11. echo This batch file is looking for a file called %1.HD$
  12. echo   created by your word processor
  13. echo %1.HD$ is not found (perhaps you can find it).
  14. echo      Don't forget -- leave off the .HD$ with DOTS234
  15. goto final
  16. :datayes
  17. if exist %hotpath%\imp1.rul goto progyes
  18. echo This batch file assumes that Hot Dots is located in %hotpath%.
  19. echo The file %hotpath%\IMP1.RUL is not found. Please change
  20. echo this and other batch file to reflect the location
  21. echo of your Hot Dots software.
  22. goto final
  23. :progyes
  24. if %2==com1 goto serial
  25. if %2==com2 goto serial
  26. if %2==COM1 goto serial
  27. if %2==COM2 goto serial
  28. goto devyes
  29. :serial
  30. if %2==com1 mode com1:96,n,8,1,p >nul
  31. if %2==com2 mode com2:96,n,8,1,p >nul
  32. if %2==COM1 mode com1:96,n,8,1,p >nul
  33. if %2==COM2 mode com2:96,n,8,1,p >nul
  34. :devyes
  35. if %hdwidth%&==& set HDWIDTH=40
  36. if %hdform%&==& set HDFORM=25
  37. import %1.hd$ 234 0 %2
  38. goto final
  39. :dox
  40. echo This batch file has 2 parameters
  41. echo 1 -- file name without extension (source file must have hd$ extension)
  42. echo 2 -- Output device designation (examples: COM1, LPT1, or CON)
  43. echo ---
  44. echo This batch file takes your file through options 2, 3, and 4
  45. echo of Hot Dots 3.0.
  46. echo These steps are file braille translation, formatting, and braille output
  47. echo ---
  48. echo Example: DOTS234 FISHY COM1
  49. echo This batch file takes the FISHY.HD$ file and creates one new file in
  50. echo your current directory:
  51. echo FISHY.BFM -- contracted, formatted and ready for your embosser
  52. echo The file FISHY.BFM is sent to the designated device COM1
  53. :final
  54.