home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / abatvw2.zip / ALEARNME.BAT < prev    next >
DOS Batch File  |  1994-07-16  |  11KB  |  303 lines

  1. @ECHO OFF
  2. REM MENUED TUTORIAL FOR A BATCH VIEW UTILITY SET PROGRAMS
  3. IF EXIST TUTOR.MNU GOTO CHKEXE
  4. CLS
  5. ECHO Missing Support File (TUTOR.MNU)
  6. ECHO Program cannot continue!
  7. GOTO END
  8. :CHKEXE
  9. IF EXIST ABATMENU.EXE GOTO MENUOK
  10. CLS
  11. ECHO Cannot Find Executable File ABATMENU.EXE !
  12. GOTO END
  13. :MENUOK
  14. IF EXIST AMSG.EXE GOTO READROK
  15. CLS
  16. ECHO Cannot Find Executable File AMSG.EXE !
  17. GOTO END
  18. :READROK
  19. IF EXIST AECHO.EXE GOTO TOPBAT
  20. CLS
  21. ECHO Cannot Find Executable File AECHO.EXE !
  22. GOTO END
  23. :TOPBAT
  24. ABATMENU.EXE "TUTOR.MNU @TUTR"
  25. IF ERRORLEVEL 13 GOTO TUTEND
  26. IF ERRORLEVEL 12 GOTO APGE
  27. IF ERRORLEVEL 11 GOTO ABJB
  28. IF ERRORLEVEL 10 GOTO ABINF
  29. IF ERRORLEVEL 9 GOTO ACLR
  30. IF ERRORLEVEL 8 GOTO AECKO
  31. IF ERRORLEVEL 7 GOTO AMSCRL
  32. IF ERRORLEVEL 6 GOTO TXTFILS
  33. IF ERRORLEVEL 5 GOTO MSGEXMP
  34. IF ERRORLEVEL 4 GOTO MSGPRG
  35. IF ERRORLEVEL 3 GOTO MENEXP
  36. IF ERRORLEVEL 2 GOTO ABMENU
  37. IF ERRORLEVEL 1 GOTO GENRL
  38. IF ERRORLEVEL 0 GOTO TUTEND
  39. GOTO TOPBAT
  40. :GENRL
  41. ACLS +31
  42. AECHO /@205:75
  43. AECHO "You can Display a Quick Help Screen for any of the Utility programs"
  44. AECHO "except Aecho.exe by typing its name on the dos command line. The help"
  45. AECHO "screens will provide you with a short description of how the program"
  46. AECHO "operates and what switches or options are available for it." 
  47. AECHO "The Aecho help screen may be viewed by using it's /h option."
  48. AECHO /@196:70
  49. AECHO "To view the help screens enter the program name on the command line,"
  50. AECHO "like this...C:> ACLS"
  51. AECHO /@196:70
  52. AECHO "This menu will display all of the utility program help screens,"
  53. AECHO "give a brief explanation of how each of the utilities works,"
  54. AECHO "and provide several examples to illustrate the use of key"
  55. AECHO "programs."
  56. AECHO /@196:70
  57. AECHO "Here's a look at the help screen for the ACLS program."
  58. AECHO /@196:60
  59. AMSCROLL /pauz +27 26 A
  60. call ACLS
  61. AMSCROLL /pauz +27 26 A
  62. GOTO TOPBAT
  63. :ABMENU
  64. ACLS +31
  65. AECHO /@205:75
  66. AECHO "The Abatmenu program allows you to create custom menus for"
  67. AECHO "just about anything. You can launch programs, batch files,"
  68. AECHO "Dos commands, set system variables, etc.."
  69. AECHO /@205:75
  70. AECHO "To use the program you need to be familiar with"
  71. AECHO "           DOS ERRORLEVEL CODES"
  72. AECHO "DOS allows programs to return a one byte numeric code"
  73. AECHO "ranging from 0-255. These codes may be used to direct"
  74. AECHO "Batch file execution to specific labels. This process"
  75. AECHO "is covered in more detail within the utility set manual."
  76. AECHO /@196:65
  77. AECHO "The basic arrangment of Batch file commands is as follows..."
  78. AECHO "IF ERRORLEVEL 2 GOTO LABEL2"
  79. AECHO "IF ERRORLEVEL 1 GOTO LABEL1"
  80. AECHO "IF ERRORLEVEL 0 GOTO END"
  81. AECHO "Labels within batch files look like this.."
  82. AECHO ":LABEL1"
  83. AECHO /@196:65
  84. AECHO "The Menu Examples section gives general guidelines for menu"
  85. AECHO "creation and color attribute use. You may also wish to reference"
  86. AECHO "the text file tutorial for an explanation of how to use ASCII"
  87. AECHO "Files to create large menus."
  88. AECHO "Here's the Abatmenu Help Screen."
  89. AMSCROLL /pauz +27 26 A
  90. call abatmenu.exe
  91. AMSCROLL /pauz +27 26 A
  92. GOTO TOPBAT
  93.  
  94. :MENEXP
  95. CALL AEXMPLES.BAT
  96. GOTO TOPBAT
  97.  
  98. :MSGPRG
  99. ACLS +31
  100. AECHO /@205:75
  101. AECHO "The Amsg program allows you to create and display user"
  102. AECHO "information screens. A variety of useful system info may"
  103. AECHO "be displayed by using available option switches. You may"
  104. AECHO "supplement program generated information or display your"
  105. AECHO "own messages. Amsg also provides a method of inputing or"
  106. AECHO "passing information through the DOS system Environment,"
  107. AECHO "as well as allowing you to implement a YES/NO branching"
  108. AECHO "mechanism to control batch file flow."
  109. AECHO /@205:75
  110. AECHO "Besides displaying information, Amsg will return" 
  111. AECHO "           DOS ERRORLEVEL CODES"
  112. AECHO "in relation to most of it's option switches."
  113. AECHO "Errorlevel codes reflect pertinent system info,"
  114. AECHO "and may be used to contol batch file flow."
  115. AECHO /@196:75
  116. AECHO "The Message Examples section gives general guidelines for message"
  117. AECHO "screen creation and color attribute use. You may also wish to" 
  118. AECHO "reference the text file tutorial for an explanation of how to use" 
  119. AECHO "ASCII Files to create large message screens."
  120. AECHO "Here's the Amsg Help Screen."
  121. CALL AMSCROLL /PAUZ +27 26 A
  122. CALL AMSG.EXE
  123. AMSCROLL /pauz +27 26 A
  124. GOTO TOPBAT
  125.  
  126. :MSGEXMP
  127. CALL AMSGEXMP.BAT
  128. GOTO TOPBAT
  129.  
  130. :TXTFILS
  131. CALL ATXTFILE.BAT
  132. GOTO TOPBAT
  133.  
  134. :AMSCRL
  135. ACLS +11
  136. AECHO
  137. AECHO
  138. AECHO "  Amscroll provides an alternative mechanism to display"
  139. AECHO "  short eye catching messages, or frame your screens for "
  140. AECHO "  maximum effect."
  141. AECHO
  142. AECHO "  Messages or graphics may be displayed anywhere on the"
  143. AECHO "  the screen in numerous aesthetic fashions."
  144. AECHO 
  145. AECHO "  Option switches control the style of display as well as"
  146. AECHO "  allowing you to control the color, and speed of your message."
  147. AECHO
  148. AECHO "  Default text color, and movement speed are supplied by the" 
  149. AECHO "  program for you, if you do not wish to provide them."
  150. AECHO  
  151. AECHO "  One practical use for this utility is to implement a custom"
  152. AECHO "  pause within your batch files in order to display your screens."
  153. AECHO
  154. AECHO "  Here's the Amscroll Help Screen."
  155. AECHO +15 "   - Press Any Key to Continue -"
  156. CALL AMSCROLL.EXE /peri +79 26 A *
  157. CALL AMSCROLL
  158. AMSCROLL /pauz +27 26 A
  159. GOTO TOPBAT
  160.  
  161. :AECKO
  162. ACLS +31
  163. AECHO /@205:75
  164. AECHO "Aecho is an enhanced replacement or substitute for the "
  165. AECHO "familiar DOS ECHO command. As an added extra you may also"
  166. AECHO "display ASCII text files with automatic pausing. "
  167. AECHO /@196:70
  168. AECHO "The Aecho utility is used through out this tutorial to"
  169. AECHO "display text and graphic characters. It will allow you"
  170. AECHO "display any printable ascii character on the video screen."
  171. AECHO /@196:75
  172. AECHO "You can control the column placement and color of display" 
  173. AECHO "screen text as well as use a spinning cursor to print it out."
  174. AECHO "Embedded control options may be placed within text files to" 
  175. AECHO "create stored color graphic displays."
  176. AECHO /@196:75
  177. AECHO "In order to display the help screen you will need to employ"
  178. AECHO "the /h option switch with this utility. Typing the program"
  179. AECHO "name alone displays a blank line."
  180. AECHO /* +27 "Here's a look at the AECHO Help screen."
  181. AMSCROLL /pauz +27 26 A
  182. call aecho.exe /h
  183. AMSCROLL /pauz +27 26 A
  184. GOTO TOPBAT
  185.  
  186. :ACLR
  187. ACLS +31
  188. AECHO /@205:75
  189. AECHO "The ACLS program provides several alternative methods of"
  190. AECHO "clearing the video screen. It contains traditional and"
  191. AECHO "unconventional algorithms for your amusement."
  192. AECHO /@196:70
  193. AECHO "Unlike the DOS CLS program you must use an option switch"
  194. AECHO "to clear the screen. Typing the program name alone on the"
  195. AECHO "command line will display a help screen."
  196. AECHO /@196:70
  197. AECHO "A couple of things worth mentioning...."
  198. AECHO "There is an option to clear user specified blocks of the" 
  199. AECHO "video screen." 
  200. AECHO "Several of the options incluse small sound effects."
  201. AECHO /@196:70
  202. AECHO "Here's the help screen "
  203. call amscroll /pauz +27 26 A
  204. call acls.exe
  205. AMSCROLL /pauz +27 26 A
  206. call acls.exe +7 /hz
  207. GOTO TOPBAT
  208.  
  209. :ABINF
  210. ACLS +31
  211. AECHO /@205:75
  212. AECHO "Abatinfo as its name implies was written to provide your"
  213. AECHO "batch files with information. This is one of the primary"
  214. AECHO "mechanisms of program flow control or directed action."
  215. AECHO "In this respect it departs from the visual concept that"
  216. AECHO "most of the utility set is built around. However, it's"
  217. AECHO "functionality and importance should be obvious."
  218. AECHO /@196:70
  219. AECHO "Dos Errorlevel Codes and Environment Variables are the"
  220. AECHO "conveyors of returned information. Some options provide"
  221. AECHO "string information assigned to the environment variable"
  222. AECHO "INFO. Direct numeric values are returned if the 0-255"
  223. AECHO "range permits, however in some cases a simple boolean"
  224. AECHO "return value is all thats necessarry. 0 = FALSE, 1 = TRUE"
  225. AECHO /@196:70
  226. AECHO "You must test the returned value in your batch file and"
  227. AECHO "branch to the appropriate label. Here's a simple test to" 
  228. AECHO "check the condition of the keyboard numberlock - Abatinfo /nmbl" 
  229. CALL ABATINFO /NMBL
  230. IF ERRORLEVEL 1 GOTO NMBON
  231. IF ERRORLEVEL 0 GOTO NOTON
  232. :NMBON
  233. AECHO "Your Number Lock is on!"
  234. GOTO DEMEND
  235. :NOTON
  236. AECHO "Your Number Lock is off!"
  237. :DEMEND
  238. AECHO /@196:70
  239. AECHO "Here's the help screen "
  240.  
  241. call amscroll /pauz +27 26 A
  242. call abatinfo.exe
  243. AMSCROLL /pauz +27 26 A
  244. GOTO TOPBAT
  245.  
  246. :ABJB
  247. ACLS +31
  248. AECHO /@205:75
  249. AECHO "Abatjob has a variety of options to perform system and"
  250. AECHO "video screen tasks from within your batch files. It is"
  251. AECHO "designed to compliment the Abatinfo utility by allowing"
  252. AECHO "you to assume some measure of control over the computer"
  253. AECHO "hardware and ACT on the information returned from that" 
  254. AECHO "utility."
  255. AECHO /@196:70
  256. AECHO "Some of the more important aspects of this utility include"
  257. AECHO "the ability to implement a loop counter in the DOS environment,"
  258. AECHO "control the size and shape of the CURSOR, and perform selective"
  259. AECHO "actions on all or part of the video screen. If you write complex" 
  260. AECHO "user interactive batch files, this utility may be an important" 
  261. AECHO "part in rounding out your creations." 
  262. AECHO /@196:70
  263. AECHO "Many of the options provided by this utility require specific"
  264. AECHO "parameter passing. Since these can affect the video display," 
  265. AECHO "please reference the utility set manual for in depth details"
  266. AECHO "on each option."
  267. AECHO /@196:70
  268. AECHO "Here's a look at the Help Screen." 
  269. call amscroll /pauz +27 26 A
  270. call abatjob.exe
  271. AMSCROLL /pauz +27 26 A
  272. GOTO TOPBAT
  273.  
  274. :APGE
  275. ACLS +31
  276. AECHO /@205:75
  277. AECHO "The Apage utility is an ASCII text file reader. Although"
  278. AECHO "it was not written for batch file use, it has been included"
  279. AECHO "in the utility set package in order to enhance the support"
  280. AECHO "files, and allow you to quickly reference the manual. You"
  281. AECHO "may of course, use it in your batch files if you so desire." 
  282. AECHO /@196:70
  283. AECHO "If your familiar with the DOS EDIT utility your probably asking"
  284. AECHO "yourself, WHY should I need to use this utility at all. The fact"
  285. AECHO "of the matter is that most of the time there is no particular"
  286. AECHO "advantage in using it. However, if you need to browse or reference" 
  287. AECHO "a large text file, such as a catalog or listing, the DOS EDIT" 
  288. AECHO "utility may come back with the NOT ENOUGH MEMORY message." 
  289. AECHO /@196:70
  290. AECHO "Apage allows you to view Ascii text files as large as 3 MB in any"
  291. AECHO "valid screen color combination. It allows you to go to the end of" 
  292. AECHO "the file quickly by simply pressing the END key. Arrow and Page"
  293. AECHO "keys are fully functional and sound effects are optional."
  294. AECHO /@196:70
  295. AECHO "Here's a look at the Help Screen." 
  296. call amscroll /pauz +27 26 A
  297. call apage.exe
  298. AMSCROLL /pauz +27 26 A
  299. GOTO TOPBAT
  300.  
  301. :TUTEND
  302. acls +7
  303.