home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / FONTLD13.ZIP / LAND.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-04-04  |  3.1 KB  |  88 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 this example.  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:  "LAND.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 %4LAND.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-L %1 0
  39. if errorlevel 1 goto error
  40. echo Will now print documentation.  Control break to exit.
  41. pause
  42. rem
  43. if /%1 == / copy %4land.doc prn
  44. if not /%1 == / copy %4land.doc %1
  45. goto exit
  46. :error
  47. echo  
  48. echo An error has been returned from FontLoader.  Aborting batch file!
  49. goto exit
  50. :no_outfile
  51. echo Error: %1 does not exist.  Pass the name of a valid device like "LPT2".
  52. if not exist %2FONTLODR.EXE goto no_exe
  53. if not exist %3HV240RPN.USP goto no_font
  54. if not exist %4LAND.DOC goto no_doc
  55. if not exist %5FL.RSP goto no_rsp
  56. goto help
  57. :no_exe
  58. echo Error: Pass the path where FONTLODR.EXE is located as the 2nd parameter.
  59. if not exist %3HV240RPN.USP goto no_font
  60. if not exist %4LAND.DOC goto no_doc
  61. if not exist %5FL.RSP goto no_rsp
  62. goto help
  63. :no_font
  64. echo Error: Pass the path where HV240RPN.USP is located as the 3rd parameter.
  65. if not exist %4LAND.DOC goto no_doc
  66. if not exist %5FL.RSP goto no_rsp
  67. goto help
  68. :no_doc
  69. echo Error: Pass the path where LAND.DOC     is located as the 4th parameter.
  70. if not exist %5FL.RSP goto no_rsp
  71. goto help
  72. :no_rsp
  73. echo Error: Pass the path where FL.RSP       is located as the 5th parameter.
  74. :help
  75. echo  
  76. echo Format: LAND device path path path path
  77. echo  
  78. echo Where   Device is PRN, LPT1, LPT2, etc.
  79. echo         First  path is for FONTLODR.EXE.
  80. echo         Second path is for HV240RPN.USP.
  81. echo         Third  path is for LAND.DOC.
  82. echo         Fourth path is for FL.RSP.
  83. echo  
  84. echo Example:  PRINTDOC PRN \UTIL\ ..\TMPPATH\ .\ D:\FONTS\
  85. echo Notice:   Every path name ends with a backslash\.
  86.  
  87. :exit
  88.