home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / FONTLD13.ZIP / PRINTDOC.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-04-04  |  3.1 KB  |  87 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.  Sixteen fonts are sent to your LaserJet before printing.
  8. echo They have ID numbers from 0 to 15.  Don't change these ID numbers as some
  9. echo fonts are called by their ID's.
  10. echo  
  11. echo 382K 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.  If you do have trouble fitting all the fonts
  14. echo into your printer's memory,  you can delete the last two fonts in FL.RSP.
  15. echo These are repeats that exist to print correctly on some HP clones that
  16. echo search for fonts in a descending order.
  17. echo  
  18. if not /%1 == / goto parm
  19. echo Using PRN!  If your LaserJet is on another device, exit by
  20. echo pressing control break and then pass the name as the 1st parameter.
  21. echo Like this:  "PRINTDOC.BAT LPT2".  
  22. echo  
  23. :parm
  24. echo Press any to key to begin loading fonts.  Press control break to exit.
  25. echo  
  26. pause
  27. cls
  28. echo  
  29. if /%1 == / goto default
  30. if not exist %1 goto no_outfile
  31. :default
  32. if not exist %2FONTLODR.EXE goto no_exe
  33. if not exist %3HV240RPN.USP goto no_font
  34. if not exist %4FONTLODR.DOC goto no_doc
  35. if not exist %4FL.RSP goto no_rsp
  36. rem Notice how it is necessary to specify two "%" characters in a batch file!
  37. rem Example BATch file line:  %2FontLodr.exe %3hv240rpn.usp -l-sh:67%%-t %1 1
  38. %2FontLodr.exe %5@FL.RSP %3hv240rpn.usp -t %1 0
  39. if errorlevel 1 goto error
  40. echo Will now print documentation.  Control break to exit.
  41. pause
  42. if /%1 == / copy %4fontlodr.doc prn
  43. if not /%1 == / copy %4fontlodr.doc %1
  44. goto exit
  45. :error
  46. echo  
  47. echo An error has been returned from FontLoader.  Aborting batch file!
  48. goto exit
  49. :no_outfile
  50. echo Error: %1 does not exist.  Pass the name of a valid device like "LPT2".
  51. if not exist %2FONTLODR.EXE goto no_exe
  52. if not exist %3HV240RPN.USP goto no_font
  53. if not exist %4FONTLODR.DOC goto no_doc
  54. if not exist %5FL.RSP goto no_rsp
  55. goto help
  56. :no_exe
  57. echo Error: Pass the path where FONTLODR.EXE is located as the 2nd parameter.
  58. if not exist %3HV240RPN.USP goto no_font
  59. if not exist %4FONTLODR.DOC goto no_doc
  60. if not exist %5FL.RSP goto no_rsp
  61. goto help
  62. :no_font
  63. echo Error: Pass the path where HV240RPN.USP is located as the 3rd parameter.
  64. if not exist %4FONTLODR.DOC goto no_doc
  65. if not exist %5FL.RSP goto no_rsp
  66. goto help
  67. :no_doc
  68. echo Error: Pass the path where FONTLODR.DOC is located as the 4th parameter.
  69. if not exist %5FL.RSP goto no_rsp
  70. goto help
  71. :no_rsp
  72. echo Error: Pass the path where FL.RSP       is located as the 5th parameter.
  73. :help
  74. echo  
  75. echo Format: PRINTDOC device path path path path
  76. echo  
  77. echo Where   Device is PRN, LPT1, LPT2, etc.
  78. echo         First  path is for FONTLODR.EXE.
  79. echo         Second path is for HV240RPN.USP.
  80. echo         Third  path is for FONTLODR.DOC.
  81. echo         Fourth path is for FL.RSP.
  82. echo  
  83. echo Example:  PRINTDOC PRN \UTIL\ ..\TMPPATH\ .\ D:\FONTS\
  84. echo Notice:   Every path name ends with a backslash\.
  85.  
  86. :exit
  87.