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

  1. @echo off
  2. REM    Hot Dots 3.0 Menu options 1, 2, 3, and 4.
  3. REM    import, 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 %3&==& goto dox
  10. if exist %1 goto datayes
  11. echo This batch file is looking for a file called %1
  12. echo   created by your word processor
  13. echo %1 is not found (perhaps you can find it).
  14. goto final
  15. :datayes
  16. if exist %hotpath%\imp1.rul goto progyes
  17. echo This batch file assumes that Hot Dots is located in %hotpath%.
  18. echo The file %hotpath%\IMP1.RUL is not found. Please change
  19. echo this and other batch file to reflect the location
  20. echo of your Hot Dots software.
  21. goto final
  22. :progyes
  23. if %4&==& goto ruleok
  24. if exist %4 goto ruleok
  25. echo Your optional rules file %4 does not exist.
  26. goto final
  27. :ruleok
  28. if %3==com1 goto serial
  29. if %3==com2 goto serial
  30. if %3==COM1 goto serial
  31. if %3==COM2 goto serial
  32. goto devyes
  33. :serial
  34. if %3==com1 mode com1:96,n,8,1,p >nul
  35. if %3==com2 mode com2:96,n,8,1,p >nul
  36. if %3==COM1 mode com1:96,n,8,1,p >nul
  37. if %3==COM2 mode com2:96,n,8,1,p >nul
  38. REM lets finally do something!
  39. :devyes
  40. if %hdwidth%&==& set HDWIDTH=40
  41. if %hdform%&==& set HDFORM=25
  42. import %1 1234 %2 %3 %4
  43. goto final
  44. :dox
  45. echo This batch file has 3 or 4 parameters
  46. echo 1 -- file name
  47. echo 2 -- Word processing file code (example: WordPerfect 4.2 code is WPF4)
  48. echo 3 -- Output device designation (examples: COM1, LPT1, or CON)
  49. echo 4 -- (optional) rules file to be used before translation
  50. echo ---
  51. echo This batch file takes your file through options 1, 2, 3, and 4
  52. echo of Hot Dots 3.0.
  53. echo These steps are file importation, braille translation, formatting,
  54. echo and braille output.
  55. echo ---
  56. echo Example: DOTS1234 FISHY.DOC WPF4 COM1
  57. echo This batch file takes your file (which was created by WordPerfect 4.2)
  58. echo and creates two new files in your current directory:
  59. echo FISHY.HD$ -- uncontracted with Hot Dots $$ commands
  60. echo FISHY.BFM -- contracted, formatted and ready for your embosser
  61. echo The file FISHY.BFM is sent to the designated device COM1
  62. :final
  63.