home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / harddisk / masdir42.lzh / DEMOPRN.BAT < prev    next >
DOS Batch File  |  1988-12-03  |  8KB  |  177 lines

  1. ECHO OFF
  2. SDL_ASK B
  3. SDL_ASK P
  4. IF ERRORLEVEL 1 GOTO first
  5. ECHO The system check indicates that there may not be a printer attached.
  6. SDL_ASK C "Continue with printing DEMO anyway (Y,n)? "  YN}~
  7. IF ERRORLEVEL 126 GOTO END
  8. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO end
  9. :first
  10. ECHO * * *
  11. ECHO Now we will use your printer to demonstrate the printing capabilities
  12. ECHO of SDL.  There are 6 print parameters, the first 2 on the command line:
  13. ECHO      /L for automatic Label printing.
  14. ECHO      /P to pop up the print options menu.
  15. ECHO  And the last 4 from the print menu:
  16. ECHO      W to Write labels in compressed print, 8 lines per inch.
  17. ECHO      R for Regular pRint - your printer settings will not be changed.
  18. ECHO      I to print sleeve Inserts, compressed, 8 lines per inch.
  19. ECHO      T for Tiny print using compressed and superscript.
  20. ECHO * * *
  21. ECHO W can fit 5 file names in each column on a standard label, or
  22. ECHO 7 if H is used to suppress the first two lines of the header.
  23. ECHO This means that you can get up to 42 names on a label with W. T can
  24. ECHO fit 11 file names in each column, so with 6 columns you can get 66
  25. ECHO file names on one label.  If you use the H option to eliminate the
  26. ECHO first two lines of the header, you can get 13 names per column for
  27. ECHO a maximum of 78 names on the 5 x 1-7/16" labels provided with SDL.
  28. ECHO (SDLSETUP will let you increase these numbers if your printer
  29. ECHO can handle more.)
  30. ECHO * * *
  31. pause
  32. ECHO Don't bother to load your printer with labels for this demo.
  33. ECHO Regular paper will work nicely for now.
  34. ECHO * * *
  35. ECHO Sorry, but there is no way to demonstrate the printing features without
  36. ECHO changing the Top Of Form (TOF) setting of your printer. SDL will
  37. ECHO return your printer to its normal print mode, all that is necessary
  38. ECHO for you to do is just realign your paper when finished.
  39. ECHO * * *
  40. SDL_ASK C "Is this acceptable (Y,n)? "  YN}~
  41. if errorlevel 126 goto end
  42. If errorlevel 89 goto continue
  43. ECHO * * *
  44. ECHO Please note that you can set the sleeve Insert option (/I) to eject
  45. ECHO a full page with SDLSETUP if you want to.  Then it will not disturb
  46. ECHO your TOF setting.
  47. ECHO * * *
  48. SDL_ASK C "Do you really want to exit (Y,n)? "  YN}~
  49. if errorlevel 89 goto end
  50. :continue
  51. SDL_ASK B
  52. ECHO * * *
  53. ECHO When you are using SDL to print, if you exit with Ctrl-C or Ctrl-Break
  54. ECHO you will not give SDL a chance to return your printer to its normal
  55. ECHO setting.  Always exit normally by using space or Enter or Esc.
  56. :second
  57. ECHO * * *
  58. ECHO To start with, the L option will be demonstrated.
  59. ECHO * * *
  60. ECHO This is completely automatic and so easy that it is not all that
  61. ECHO exciting to demonstrate.  The /L (for Label) option automatically
  62. ECHO determines an appropriate way to print the number of files you have
  63. ECHO selected.  /L or /l has to be entered on the command line.  It is not
  64. ECHO available as a menu item because at that point you can see what you
  65. ECHO have and make your own selections.  This is how SDL lets you keep
  66. ECHO control if you want to.  The command is simply
  67. ECHO * * *
  68. ECHO SDL /L/M
  69. ECHO * * *
  70. ECHO The optional /M is for More and toggles off the pause at the end.
  71. pause
  72. SDL /L/M
  73. ECHO Note that if you have more files than will fit on a label SDL
  74. ECHO will report that fact and exit without printing.
  75. pause
  76. :third
  77. ECHO * * *
  78. ECHO This time the DEMO will require your cooperation.  The /P option
  79. ECHO will pop up the print option menu.  We will let you select W, R, I, or T
  80. ECHO from the menu to print the way you want to. You may try several
  81. ECHO different selections, but after each one you have to press P
  82. ECHO to bring up the print menu again.
  83. ECHO * * *
  84. ECHO When you use /P on the command line, the FIRST time the print
  85. ECHO menu pops up, and ONLY the first time, W or T will cause the
  86. ECHO number of columns to be adjusted to fit on a label, or you will
  87. ECHO see the report that there are too many files for a label.
  88. ECHO However, when you select P from the menu, the number of columns
  89. ECHO has already been set and will not be changed.  To change columns
  90. ECHO at that point use the 2, 4, or 6 menu selections instead.
  91. ECHO * * *
  92. SDL_ASK C "Enter Y to continue, N to repeat the previous demo (Y,n)? "  YN}~
  93. if errorlevel 126 goto end
  94. if errorlevel 78 if not errorlevel 79 goto second
  95. sdl_ask B
  96. ECHO With R your printer will print in its normal fashion.  You can experiment
  97. ECHO with different column options if you like.  Notice that the prompting
  98. ECHO information (menu) is not printed, so even if SDL pauses, your output
  99. ECHO looks OK.
  100. ECHO * * *
  101. ECHO The I option prints in compressed mode, but the number of columns
  102. ECHO is adjusted for the size of the screen, not for a label.  This
  103. ECHO is used to print in an appropriate size to cut out and slip into
  104. ECHO the diskette envelope.
  105. ECHO * * *
  106. ECHO Pressing Esc turns printing off, Return [CR] makes no change.
  107. ECHO The command is
  108. ECHO * * *
  109. ECHO SDL /P/C
  110. ECHO The optional /C will suppress the clearing of the screen.  You
  111. ECHO can cause the screen to clear and the printer to eject the label
  112. ECHO by pressing the C (for Cls) key when shown on the menu.  Note
  113. ECHO the [ff ON] or [ff OFF] depending on whether you have set form feed
  114. ECHO ON or OFF using the Cls selection.
  115. pause
  116. SDL /P/C
  117. SDL_ASK B
  118. ECHO * * *
  119. ECHO Although it may be convenient to do so, it is not absolutely necessary
  120. ECHO to suppress pausing when printing.  The prompts will not be printed,
  121. ECHO but if you exit with Esc at an intermediate pause, the rest of the
  122. ECHO directory list will not be printed.
  123. ECHO * * *
  124. ECHO Notice that when exiting, SDL ejects the Insert or Label and positions
  125. ECHO the next one automatically.
  126. ECHO * * *
  127. ECHO If you print an even number of Inserts, your TOF will be back to where
  128. ECHO you had it set.  If you print an odd number, it will be in the middle
  129. ECHO of the page, but this allows two Inserts on a page, and can save paper
  130. ECHO when printing several inserts.  Please note that you can set the sleeve
  131. ECHO Insert option to eject a full page if you want to.  That way your TOF
  132. ECHO setting will not be disturbed.
  133. ECHO * * *
  134. SDL_ASK C "Enter Y to continue, N to repeat the previous demo (Y,n)? "  YN}~
  135. if errorlevel 126 goto end
  136. if errorlevel 78 if not errorlevel 79 goto third
  137. :fourth
  138. SDL_ASK B
  139. ECHO * * *
  140. ECHO If you do not include /P on the command line, then you can select
  141. ECHO printing by pressing P when it is shown highlighted on the menu.
  142. ECHO When you initiate printing this way, SDL assumes that you have
  143. ECHO adjusted the number of columns to your liking and will print "as
  144. ECHO is."  If you are printing labels make sure that you do not have
  145. ECHO more rows of file names than will fit on a label.  5 or 7 for
  146. ECHO W depending on the Hdr toggle setting, and 11 or 13 for T.
  147. ECHO * * *
  148. ECHO Notice that the first items on the menu are [Prn OFF ff OFF].
  149. ECHO When you start printing the first one will change to [Prn ON].
  150. ECHO If you press C the second will change to [ff ON].  You can turn
  151. ECHO both off again by pressing P for the print menu, then pressing Esc.
  152. ECHO * * *
  153. pause
  154. ECHO This time we will let you make all the selections.  Use 2, 4, or 6
  155. ECHO to adjust the number of columns, then press P for the print menu,
  156. ECHO and select the type of printing you want.  Experiment with Cls
  157. ECHO when you see it on the menu, and try turning printing off with Esc.
  158. ECHO We will also use the /E option to let you enter your own titles
  159. ECHO in the header.
  160. ECHO * * *
  161. ECHO The command is simply
  162. ECHO SDL /e
  163. ECHO * * *
  164. pause
  165. SDL /e
  166. ECHO * * *
  167. ECHO When using the /E option to enter titles you can blank out a title
  168. ECHO line completely by entering one or more spaces.  To keep any
  169. ECHO line of the title unchanged, just press Enter with no spaces.
  170. ECHO * * *
  171. ECHO That was the last printing demo.
  172. ECHO * * *
  173. SDL_ASK C "Enter Y to exit, N to repeat the previous demo (Y,n)? "  YN}
  174. if errorlevel 78 if not errorlevel 79 goto fourth
  175. :end
  176. MENU
  177.