home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #2 / RBBS_vol1_no2.iso / add2 / paws21.zip / PAWSDEMO.BAT < prev    next >
DOS Batch File  |  1989-01-31  |  11KB  |  311 lines

  1. echo off 
  2. cls 
  3. echo.
  4. echo                           ╔═══════════════════════════╗ 
  5. echo                           ║           PAWS            ║ 
  6. echo                           ║       version 2.1         ║
  7. echo                           ╚═══════════════════════════╝ 
  8. echo                             Demonstration Batch file 
  9. if not exist paws.exe goto no_paws 
  10. echo. 
  11. echo. 
  12. echo. 
  13. echo. 
  14. echo                                Why just use this: 
  15. pause 
  16. echo. 
  17. echo. 
  18. echo. 
  19. echo                              When you can have this: 
  20. echo. 
  21. echo. 
  22. echo. 
  23. echo. 
  24. paws /W10 /c13 /b15 /i
  25. cls 
  26. paws Good $N, welcome to PAWS!/W30 /C30 /B30 /T20 /i
  27. cls
  28. echo             ╔══════════════════════════════════════════════════════╗ 
  29. echo             ║     This batch file will demonstrate several modes   ║ 
  30. echo             ║  of PAWS.  Of course, to show all the ways PAWS can  ║ 
  31. echo             ║  be used would take hours, for PAWS is only limited  ║ 
  32. echo             ║                 by your imagination.                 ║ 
  33. echo             ╚══════════════════════════════════════════════════════╝ 
  34. echo. 
  35. echo. 
  36. paws /W15 /i
  37. cls 
  38. echo                      ╔═════════════════════════════════════╗ 
  39. echo                      ║   PAWS has 2 basic display modes    ║ 
  40. echo                      ╚═════════════════════════════════════╝ 
  41. echo. 
  42. echo. 
  43. echo. 
  44. echo. 
  45. paws On a line all by itself...Press any key for the other mode /i
  46. paws or in a WINDOW!...Press any key to continue /W15 /i
  47. cls
  48. echo                     ╔═══════════════════════════════════════╗ 
  49. echo                     ║   PAWS has 16 different border types  ║ 
  50. echo                     ║   They are all listed in PAWSDOC.COM  ║ 
  51. echo                     ║                                       ║ 
  52. echo                     ║    Here is a small sample of a few    ║ 
  53. echo                     ║               borders                 ║ 
  54. echo                     ╚═══════════════════════════════════════╝
  55. echo.
  56. echo.
  57. echo.
  58. echo.
  59. paws This is type 1 /w10 /c15 /b7 /o1
  60. paws This is type 6 /w11 /c14 /b10 /o6
  61. paws This is type 11 /w13 /c10 /b14 /o11
  62. paws This is type 16 (The Default) /w15 /c14 /b15
  63. cls 
  64. echo                     ╔═══════════════════════════════════════╗ 
  65. echo                     ║       PAWS can be made to scroll      ║ 
  66. echo                     ║         (which is the default)        ║ 
  67. echo                     ╚═══════════════════════════════════════╝
  68. echo.
  69. echo.
  70. echo.
  71. paws /i /w11 /c14 /b15 /t600
  72. cls
  73. echo                     ╔═══════════════════════════════════════╗ 
  74. echo                     ║        Or you can make PAWS           ║ 
  75. echo                     ║              pause!                   ║ 
  76. echo                     ╚═══════════════════════════════════════╝ 
  77. echo.
  78. echo.
  79. echo.
  80. paws /i /w11 /c14 /b15 /t600 /p
  81. cls
  82. echo                     ╔═══════════════════════════════════════╗ 
  83. echo                     ║       PAWS will also make noise       ║ 
  84. echo                     ║ NOTE:  Let the cycle run through once ║ 
  85. echo                     ║         before pressing a key         ║ 
  86. echo                     ╚═══════════════════════════════════════╝ 
  87. echo. 
  88. paws I Can use any tone you want /s1000 /i
  89. echo. 
  90. paws Here is a lower one /s100 /i
  91. echo. 
  92. echo. 
  93. paws Here is middle "C" /s524 /W11 /i
  94. cls 
  95. echo                         ╔══════════════════════════════╗ 
  96. echo                         ║   PAWS can also be in color  ║ 
  97. echo                         ║    256 colors are available  ║ 
  98. echo                         ╚══════════════════════════════╝ 
  99. echo. 
  100. paws Press any key to see my color chart! /s2000 /i
  101. paws /c? /i
  102. echo. 
  103. paws Press any key for more! /W78 /c79 /b77 /i
  104. :less 
  105. cls 
  106. echo                      ╔════════════════════════════════════╗ 
  107. echo                      ║ If you don't want your batch files ║ 
  108. echo                      ║          to wait forever,          ║ 
  109. echo                      ║     You can set PAWS to TIMEOUT    ║ 
  110. echo                      ║        don't press any key,        ║ 
  111. echo                      ║ wait 10 seconds for PAWS to TimeOut║ 
  112. echo                      ╚════════════════════════════════════╝ 
  113. echo. 
  114. echo. 
  115. paws Wait for me to Timeout /T10 /i
  116. if errorlevel 1 goto more 
  117. goto less 
  118. :more 
  119. paws /w144 /i
  120. cls 
  121. echo             ╔══════════════════════════════════════════════════════╗ 
  122. echo             ║     PAWS can be used in a batch file menu system     ║ 
  123. echo             ╚══════════════════════════════════════════════════════╝ 
  124. :menu 
  125. echo. 
  126. echo. 
  127. echo. 
  128. echo                         A...Word Processing 
  129. echo                         B...Spread Sheet 
  130. echo                         C...Games 
  131. echo                         D...Quit 
  132. echo. 
  133. :again 
  134. paws Enter Your Choice: (A,B,C or D) /Kabcd /i /p
  135. if errorlevel 68 goto quit 
  136. if errorlevel 67 goto games 
  137. if errorlevel 66 goto spread 
  138. if errorlevel 65 goto word 
  139. goto again 
  140. :word 
  141. cls 
  142. echo You are in the Word Processing Section 
  143. echo. 
  144. paws /i
  145. cls 
  146. goto menu 
  147. :spread 
  148. cls 
  149. echo You are in the Spread Sheet Section 
  150. echo. 
  151. paws /i
  152. cls 
  153. goto menu 
  154. :games 
  155. cls 
  156. echo You are in the games section 
  157. echo. 
  158. paws /i
  159. cls 
  160. goto menu 
  161. :quit 
  162. echo. 
  163. echo. 
  164. echo. 
  165. paws /W13 /i
  166. cls 
  167. echo               ╔═══════════════════════════════════════════════════╗ 
  168. echo               ║     PAWS can also be the center of attraction     ║ 
  169. echo               ╚═══════════════════════════════════════════════════╝ 
  170. echo. 
  171. echo. 
  172. paws Press any key to see me in the middle /i
  173. paws /X0 /W40 /c14 /i
  174. cls 
  175. echo          ╔═══════════════════════════════════════════════════════════╗ 
  176. echo          ║  PAWS can be told to remember what the screen looked like ║ 
  177. echo          ╚═══════════════════════════════════════════════════════════╝ 
  178. echo. 
  179. dir /w 
  180. echo. 
  181. paws /i
  182. paws /X1 /W15 /C13 /i
  183. echo. 
  184. echo                 ╔═══════════════════════════════════════════════╗ 
  185. echo                 ║          See, Just as you left it             ║ 
  186. echo                 ╚═══════════════════════════════════════════════╝ 
  187. echo. 
  188. echo. 
  189. echo. 
  190. paws /i
  191. cls
  192. echo                   ╔═══════════════════════════════════════════╗ 
  193. echo                   ║  PAWS can also handle very long lines.    ║ 
  194. echo                   ║  PAWS will only display 68 characters on  ║ 
  195. echo                   ║  the screen at any one time.  With strings║ 
  196. echo                   ║  longer than 68 characters, the whole     ║ 
  197. echo                   ║  message will not be displayed at once,   ║ 
  198. echo                   ║        but it will all be displayed.      ║ 
  199. echo                   ╚═══════════════════════════════════════════╝
  200. echo.
  201. echo.
  202. echo.
  203. echo.
  204. paws Now is the time for all good computers to demonstrate PAWS to the best of their circuit's ability /W10 /C14/i
  205. cls
  206. echo                   ╔═══════════════════════════════════════════╗ 
  207. echo                   ║  PAWS Can also tell the time, date, DOS   ║ 
  208. echo                   ║  version, current drive, current path,    ║ 
  209. echo                   ║  the day and the contents of any          ║ 
  210. echo                   ║          environment variable.            ║ 
  211. echo                   ╚═══════════════════════════════════════════╝ 
  212. echo.
  213. echo.
  214. echo.
  215. paws The Time is $T...Press any key /W46 /C10 /B10/i
  216. paws The Time is $U /w10 /c15 /b14 /p /t120
  217. paws Your DOS version is $v /W31 /C31 /B31/i
  218. paws It is the $y day of the year /W46 /C11 /B11/i
  219. paws It is now $U /W30 /C31 /B31/i
  220. paws Another way of looking at it is $V$f /W30 /C31 /B31/i
  221. paws Today is $V$W or $V$W/W95 /C94 /B94/i
  222. paws The current Directory is $p /W75 /C75 /B75/i
  223. paws The current drive is $n: /W10 /C15/i
  224. REM It is necessary, in  batch file, to put 2 percent signs to get one printed
  225. paws Drive $n: has $FA free or $FP%% /w11 /c10 /b15
  226. REM You must use $%%env%% in a batch file, $%env% on the command line
  227. paws Your PATH is $%%path%% /W11 /C14/i
  228. cls
  229. echo               ╔════════════════════════════════════════════════════╗ 
  230. echo               ║  You can stack many system variables in one prompt ║ 
  231. echo               ╚════════════════════════════════════════════════════╝ 
  232. echo.
  233. echo.
  234. echo.
  235. echo.
  236. paws The current drive is $n:, The current directory is $p, Your path is $%%path%% /W14 /C10/i
  237. cls
  238. echo                ╔══════════════════════════════════════════════════╗ 
  239. echo                ║  PAWS can also read the PAWS environment variable║ 
  240. echo                ║  and get command line parameters from it.  Your  ║ 
  241. echo                ║  current environment is displayed below.         ║ 
  242. echo                ╚══════════════════════════════════════════════════╝ 
  243. set
  244. paws /C14 /i
  245. cls
  246. echo                ╔══════════════════════════════════════════════════╗ 
  247. echo                ║ By setting:                                      ║ 
  248. echo                ║  "PAWS=I am reading PAWS /W40/C40/B40/S2000"     ║ 
  249. echo                ║ I don't needto put anything on the command line. ║ 
  250. echo                ╚══════════════════════════════════════════════════╝ 
  251. echo.
  252. echo.
  253. echo.
  254. set oldpaws=%paws%
  255. set paws=I am reading PAWS/w40/c40/b40/s2000
  256. set
  257. paws
  258. set paws=%oldpaws%
  259. set oldpaws=
  260. cls
  261. echo                ╔══════════════════════════════════════════════════╗ 
  262. echo                ║     Finally, I know that some of you are not     ║ 
  263. echo                ║    registering because you just  love the OLD    ║ 
  264. echo                ║   BORING version of PAUSE that comes with DOS!   ║ 
  265. echo                ║  Now, PAWS can act just like DOS's PAUSE if you  ║ 
  266. echo                ║ want. You now have no excuse for not registering ║ 
  267. echo                ╚══════════════════════════════════════════════════╝ 
  268. echo.
  269. echo.
  270. echo.
  271. REM Here it is, DOS has met its match!
  272. paws /dos
  273. cls
  274. echo                ╔══════════════════════════════════════════════════╗ 
  275. echo                ║  Would You like to view the PAWS Documentation?  ║ 
  276. echo                ╚══════════════════════════════════════════════════╝ 
  277. echo.
  278. echo.
  279. echo.
  280. paws Please press Y or N /W11 /C14 /Kyn/i /o11
  281. if errorlevel 89 goto read_doc
  282. goto no_doc
  283. :read_doc
  284. if exist pawsdoc.com paws /? 
  285. :no_doc
  286. cls 
  287. echo                   ╔═══════════════════════════════════════════╗ 
  288. echo                   ║  This concludes the PAWS batch file Demo  ║ 
  289. echo                   ╚═══════════════════════════════════════════╝ 
  290. echo. 
  291. echo. 
  292. echo. 
  293. paws /c13 /i /w10 /o1
  294. paws /v /i
  295. goto end 
  296. :no_paws 
  297. echo.
  298. echo.
  299. echo.
  300. echo                   ╔═══════════════════════════════════════════╗ 
  301. echo                   ║   This demonstration requires PAWS.EXE    ║ 
  302. echo                   ║       to be in the current directory      ║ 
  303. echo                   ║         Please correct and retry          ║ 
  304. echo                   ╚═══════════════════════════════════════════╝ 
  305. :end 
  306. REM Thank you for viewing the PAWS Demonstration Batch File
  307. REM Created by Michael L. Wilson
  308. REM 1161 Longdon Street
  309. REM Longmont, CO  80501
  310.  
  311.