home *** CD-ROM | disk | FTP | other *** search
/ Best of German Only 2 / romside_best_of_german_only_2.iso / dos / anwender / tksfonts / entpack.exe / PRINTDOC.BAT < prev    next >
DOS Batch File  |  1991-07-10  |  3KB  |  95 lines

  1. echo off
  2. cls
  3. echo  
  4. echo                              F O N T L O A D E R
  5. echo  
  6. echo An HP LaserJet or compatible that supports soft fonts is required to print
  7. echo the documentation.  Thirteen fonts are sent to your LaserJet before printing.
  8. echo They have ID numbers from 0 to 12.  Don't change these ID numbers as some
  9. echo fonts are called by their ID's.
  10. echo  
  11. echo 267K bytes of fonts are sent to your printer.  If you have a 512K LaserJet,
  12. echo make sure that you don't have any other soft fonts loaded or you may have
  13. echo trouble running this demo.  
  14. echo  
  15. if not /%1 == / goto parm
  16. echo Using PRN!  If your LaserJet is on another device, exit by
  17. echo pressing control break and then pass the name as the 1st parameter.
  18. echo Like this:  "PRINTDOC.BAT LPT2".  
  19. echo  
  20. echo If you are printing through a LAN,  pass the "-UD" Use DOS option to print
  21. echo to PRN through DOS instead of the ROM BIOS.
  22. echo Like this:  "PRINTDOC.BAT -UD".
  23. echo  
  24. :parm
  25. echo Press any to key to begin loading fonts.  Press control break to exit.
  26. echo  
  27. pause
  28. cls
  29. echo  
  30. if /%1 == / goto default
  31. if %1 == -ud goto default
  32. if %1 == -UD goto default
  33. if not exist %1 goto no_outfile
  34. :default
  35. if not exist %2FONTLODR.EXE goto no_exe
  36. if not exist %3HV240RPN.USP goto no_font
  37. if not exist %4FONTLODR.DOC goto no_doc
  38. if not exist %4FL.RSP goto no_rsp
  39. rem Notice how it is necessary to specify two "%" characters in a batch file!
  40. rem Example BATch file line:  %2FontLodr.exe %3hv240rpn.usp -l-sh:67%%-t %1 1
  41. %2FontLodr.exe %5@FL.RSP %3hv240rpn.usp -t %1 0
  42. if errorlevel 1 goto error
  43. echo Will now print documentation.  Control break to exit.
  44. pause
  45. if /%1 == / goto copydoc
  46. if %1 == -ud goto copydoc
  47. if %1 == -UD goto copydoc
  48. copy %4fontlodr.doc %1
  49. goto exit
  50. :copydoc
  51. copy %4fontlodr.doc prn
  52. goto exit
  53. :error
  54. echo  
  55. echo An error has been returned from FontLoader.  Aborting batch file!
  56. goto exit
  57. :no_outfile
  58. echo Error: %1 does not exist.  Pass the name of a valid device like "LPT2".
  59. if not exist %2FONTLODR.EXE goto no_exe
  60. if not exist %3HV240RPN.USP goto no_font
  61. if not exist %4FONTLODR.DOC goto no_doc
  62. if not exist %5FL.RSP goto no_rsp
  63. goto help
  64. :no_exe
  65. echo Error: Pass the path where FONTLODR.EXE is located as the 2nd parameter.
  66. if not exist %3HV240RPN.USP goto no_font
  67. if not exist %4FONTLODR.DOC goto no_doc
  68. if not exist %5FL.RSP goto no_rsp
  69. goto help
  70. :no_font
  71. echo Error: Pass the path where HV240RPN.USP is located as the 3rd parameter.
  72. if not exist %4FONTLODR.DOC goto no_doc
  73. if not exist %5FL.RSP goto no_rsp
  74. goto help
  75. :no_doc
  76. echo Error: Pass the path where FONTLODR.DOC is located as the 4th parameter.
  77. if not exist %5FL.RSP goto no_rsp
  78. goto help
  79. :no_rsp
  80. echo Error: Pass the path where FL.RSP       is located as the 5th parameter.
  81. :help
  82. echo  
  83. echo Format: PRINTDOC device path path path path
  84. echo  
  85. echo Where   Device is PRN, LPT1, LPT2, etc.
  86. echo         First  path is for FONTLODR.EXE.
  87. echo         Second path is for HV240RPN.USP.
  88. echo         Third  path is for FONTLODR.DOC.
  89. echo         Fourth path is for FL.RSP.
  90. echo  
  91. echo Example:  PRINTDOC PRN \UTIL\ ..\TMPPATH\ .\ D:\FONTS\
  92. echo Notice:   Every path name ends with a backslash\.
  93.  
  94. :exit
  95.