home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / basic / library / asic / ascsu215 / getpause.doc < prev    next >
Text File  |  1991-11-23  |  3KB  |  66 lines

  1.                                  Matt Roberts
  2.                                3 Cedar St., # 8
  3.                            Montpelier, Vt 05602-3006
  4.  
  5.                                    07-07-91
  6.  
  7.  
  8.                               NOTES ON GETPAUSE.COM
  9.  
  10. ───────────────────────────────────────────────────────────────────────────────
  11. This command is nothing more than a replacement for the internal DOS command 
  12. PAUSE.  The only difference is that you can specify a message.  For instance, 
  13. if you want your batch file to print the phrase
  14.  
  15.                      "Press any key to see the main menu."
  16.  
  17. and then wait for a key to be pressed, you would include the following line in 
  18. your batch file:
  19.  
  20.                   getpause Press any key to see the main menu.
  21.  
  22. Because this is an external command, it works slower than PAUSE.  A similar 
  23. effect can be obtained by the following lines:
  24.  
  25. echo Press any key to see the main menu.
  26. pause > nul
  27.  
  28. This prints the message, then pauses without sending the "Strike a key when 
  29. ready" message to the screen.  However, I've been writing rather large batch 
  30. files lately, and GETPAUSE.COM reduces the amount of typing to some extent.  
  31. Since some of my batch files can get over 10K, any eliminated typing is a 
  32. plus.  In addition, with GETPAUSE, the cursor is placed after the message.  
  33. Using the PAUSE method, the cursor winds up at the far left of the screen, on 
  34. the next line.  For some reason, this looked a bit sloppy to me.
  35.  
  36. You can also use GETA9.COM, written by Robert Wallace, for the same purpose.  
  37. The batch line would be
  38.  
  39.                    geta9 Press any key to see the main menu.
  40.  
  41. The advantage here is that you don't have to deal with quite so many 
  42. utilities, which reduces disk clutter.  The disadvantages are, first, that the 
  43. key you type will be printed on the screen.  This was important to me, 
  44. although it's entirely possible that I'm being overly fussy.  The second 
  45. disadvantage is that if you press the space bar, GETA9.COM ignores it.  Since 
  46. the space bar is my favorite when "Press any key" is specified, I decided 
  47. against using this utility.
  48.  
  49. Again, GETPAUSE.COM runs slower than internal commands, and I've begun 
  50. experimenting with converting my batch files to ASIC 3.01, a BASIC compiler.  
  51. This has had some excellent results, although there are some limitations to 
  52. the compiler, which makes thorough testing a must.
  53.  
  54. GETPAUSE.COM was written in ASIC 3.01.  The source is included, in the file 
  55. GETPAUSE.ASI.
  56.  
  57.  
  58. ASIC 3.01 is a registered trademark of David Visti.  This is a shareware BASIC 
  59. compiler, which I recommend very highly.  Registration is currently only 
  60. $10.00; I suggest you get a registered copy before he comes to his senses and 
  61. 2
  62. starts charging what it's worth.  He can be reached at P.O. Box 2952, Raleigh, 
  63. NC 27602-2952.
  64.  
  65. DOS is a registered trademark of Microsoft Corporation.
  66.