home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / harddisk / masdir42.lzh / SDLFINIS.BAT < prev    next >
DOS Batch File  |  1989-02-04  |  6KB  |  143 lines

  1. ECHO Off
  2. IF NOT .%3 == . GOTO PARMSOK
  3. ECHO Please start the setup program by running SDLSETUP.
  4. GOTO QUIT
  5. :PARMSOK
  6. SDL_ASK B
  7. ECHO * * *
  8. ECHO The next section includes:
  9. ECHO      Sleeve Inserts page ejects
  10. ECHO      More or Pause
  11. ECHO      Number of files for Tiny print labels
  12. ECHO      Line printing characters
  13. ECHO      . and .. directories
  14. ECHO      Color or Monochrome displays.
  15. ECHO * * *
  16. echo The remaining selections do not have options to change them once
  17. ECHO they are set.  The only way to change them is to run SDLSETUP
  18. ECHO again.  To skip to the next section press Esc at any prompt.
  19. ECHO * * *
  20. ECHO You can set sleeve Inserts to eject a full page (66 lines).
  21. ECHO The original default was one-half page (33 lines).
  22. ECHO * * *
  23. SDL_ASK C "Press 3 for 33 lines, 6 for 66 lines or cr for no change (3,6,cr): " 63~}
  24. IF ERRORLEVEL 126 GOTO :TITLE
  25. IF ERRORLEVEL 54 IF NOT ERRORLEVEL 55 ECHO E 235 42>>SDLSETUP.TXT
  26. IF ERRORLEVEL 51 IF NOT ERRORLEVEL 52 ECHO E 235 21>>SDLSETUP.TXT
  27. ECHO * * *
  28. ECHO As mentioned earlier, M for More is the default key letter to
  29. ECHO indicate that you want to see a Menu at the end of each screen.
  30. ECHO If you require compatibility with earlier versions of SDL, you
  31. ECHO may specify P for Pause instead of P for Print. (M for More or
  32. ECHO Menu will still work, but you will have to use R for pRint.)
  33. ECHO * * *
  34. SDL_ASK C "Press M for More, P for Pause, or cr for no change (M,p,cr): " PM~}
  35. IF ERRORLEVEL 126 GOTO :TITLE
  36. IF ERRORLEVEL 80 IF NOT ERRORLEVEL 81 ECHO E 237 50 52>>SDLSETUP.TXT
  37. IF ERRORLEVEL 77 IF NOT ERRORLEVEL 78 ECHO E 237 4D 50>>SDLSETUP.TXT
  38. ECHO * * *
  39. ECHO When using the /L option to print labels, SDL figures 11 filenames
  40. ECHO for each column if it uses Tiny print.  This works fine on most
  41. ECHO printers and is specific to some Epson LQ models.  Some printers
  42. ECHO have smaller fonts and can fit up to 15 files per column, for
  43. ECHO example the Epson FX-80.  You may change the number up to 15 if you
  44. ECHO have a printer that can handle it.
  45. ECHO * * *
  46. SDL_ASK C "Enter B for 11, C for 12, D for 13, E for 14, or F for 15 (B,c,d,e,f)?" BCDEF}~
  47. IF ERRORLEVEL 126 GOTO TITLE
  48. IF NOT ERRORLEVEL 125 ECHO E 23A %WHAT%>>SDLSETUP.TXT
  49. ECHO * * *
  50. ECHO When printing a directory, SDL usually substitutes printable
  51. ECHO ASCII characters for the line drawing characters you see on your
  52. ECHO screen.  If your printer supports the extended ASCII characters
  53. ECHO you can have SDL use them to produce a neater printout.
  54. ECHO * * *
  55. SDL_ASK C "Press L for line drawing, S for substitutes (S,l,cr): " LS~}
  56. IF ERRORLEVEL 126 GOTO :TITLE
  57. IF ERRORLEVEL 83 IF NOT ERRORLEVEL 84 ECHO E 234 00>>SDLSETUP.TXT
  58. IF ERRORLEVEL 76 IF NOT ERRORLEVEL 77 ECHO E 234 01>>SDLSETUP.TXT
  59. ECHO * * *
  60. ECHO All DOS subdirectories have two entries named "." and "..".
  61. ECHO The . entry refers to the current subdirectory, while the ..
  62. ECHO entry refers to the parent directory.  Many people find these
  63. ECHO entries superfluous and do not care to see them.  Directories
  64. ECHO will display or not depending on the ALL default setting.  They
  65. ECHO can be toggled on or off with the /A option.  When directories
  66. ECHO are shown, you can have SDL suppress the dots if you want.
  67. ECHO * * *
  68. SDL_ASK C "Press . to see the dots, or S to suppress them (S,.,cr): " .S~}
  69. IF ERRORLEVEL 126 GOTO :TITLE
  70. IF ERRORLEVEL 46 IF NOT ERRORLEVEL 47 ECHO E 236 01>>SDLSETUP.TXT
  71. IF ERRORLEVEL 83 IF NOT ERRORLEVEL 84 ECHO E 236 00>>SDLSETUP.TXT
  72. ECHO * * *
  73. ECHO SDL trys to determine whether you are using a color or monochrome
  74. ECHO monitor.  It uses this to set the attribute for the highlighted
  75. ECHO key letters in the bottom line menus.  This may not produce
  76. ECHO agreeable results on some monochrome graphics screens, so if
  77. ECHO you do not care for the automatic selection you can specify one
  78. ECHO style to be used all the time.  This may take some experimention.
  79. ECHO * * *
  80. SDL_ASK C "Press A for automatic, C for color, M for mono, or cr (A,c,m,cr): "  CAM~}
  81. IF ERRORLEVEL 126 GOTO :TITLE
  82. IF ERRORLEVEL 67 IF NOT ERRORLEVEL 68 ECHO E 239 09>>SDLSETUP.TXT
  83. IF ERRORLEVEL 77 IF NOT ERRORLEVEL 78 ECHO E 239 78>>SDLSETUP.TXT
  84. IF ERRORLEVEL 65 IF NOT ERRORLEVEL 66 ECHO E 239 00>>SDLSETUP.TXT
  85. :TITLE ... now another check on the SDL version.
  86. IF NOT .%1 == .142 GOTO VERSION
  87. IF NOT .%2 == .143 GOTO VERSION
  88. SDL_ASK B
  89. ECHO * * *
  90. ECHO This is the last section:
  91. ECHO * * *
  92. ECHO You may enter your own titles on the first two header lines,
  93. ECHO or restore the original lines.  These titles will display or not
  94. ECHO depending on the Hdr default setting.  They can be toggled on
  95. ECHO or off with the /H option.  If you have changed the titles and
  96. ECHO want to restore the original, select Y.  Changed or restored
  97. ECHO titles do not have the highlighted capital letters.
  98. ECHO * * *
  99. ECHO In order to protect the display of the support notices in the
  100. ECHO FREE evaluation version of SDL, we are unable to change
  101. ECHO the default for this feature.  It is fully supported in the
  102. ECHO registered version.  Please consider registering today.
  103. pause
  104. SDL_ASK $
  105. Echo E 23c 00 00 >>SDLSETUP.TXT
  106. Echo E 23c %WHAT%>>SDLSETUP.TXT
  107. ECHO * * *
  108. :REM Better make another check on SDL Version (see REM below).
  109. SDL @#$.$#@/!
  110. IF NOT ERRORLEVEL %1 GOTO VERSION
  111. IF ERRORLEVEL %2 GOTO VERSION
  112. REM Check the size of SDL.COM
  113. SDL_ASK F SDL.COM
  114. IF NOT ERRORLEVEL 1 GOTO :SIZEOK
  115. REM The size must match what is passed in %3, else version is incorrect.
  116. IF NOT %3 == %WHAT% GOTO VERSION
  117. :SIZEOK
  118. ECHO * * *
  119. :END
  120. IF NOT EXIST SDLSETUP.TXT GOTO NOCHANGE
  121. SDL_ASK F SDLSETUP.TXT
  122. IF NOT ERRORLEVEL 1 GOTO NOCHANGE
  123. ECHO Input complete, now updating SDL.COM . . .
  124. ECHO MASDIR featuring SDL.COM is user-supported software (shareware).
  125. ECHO If you find it useful you can obtain a registered version by
  126. ECHO sending the registration fee of $15 to MOBY DISK,
  127. ECHO Attn: Bob Stephan, 1021 San Carlos Road, Pebble Beach, CA 93953
  128. ECHO For more product information print the file ORDER.FRM.
  129. SDLDEBUG
  130. REM BATch commands end here, the rest are error messages.
  131. GOTO QUIT
  132. :VERSION
  133. ECHO The version of SDL is incompatible with this
  134. ECHO version of SDLSETUP.  Please copy compatible
  135. ECHO versions from your original disk and try again.
  136. :NOCHANGE
  137. ECHO * * *
  138. ECHO NO CHANGES HAVE BEEN MADE TO SDL.COM!
  139. IF EXIST SDLSETUP.TXT ERASE SDLSETUP.TXT
  140. :QUIT
  141. SET WHAT=
  142. ECHO Exiting to DOS ...
  143.