home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / batch / askcom2d.zip / ASK.DOC < prev    next >
Text File  |  1992-08-08  |  4KB  |  106 lines

  1.                                 6 August 1992
  2.                              PaceSoft Utilities
  3.                              Ask.Com Version 2d
  4.  
  5.      Ask.Com is a batch-file enhancement utility for MS/PC DOS systems. 
  6. Using the batch commands (language) provided in DOS, you can do most 
  7. anything but get user input "into" the batch file.  Ask.com provides the 
  8. means for obtaining User input for use in a batch file.
  9.  
  10.      Ask.Com is very useful for creating Menu batch files, and for providing 
  11. multiple options in response to other programs which have multiple return 
  12. codes for differing conditions...  For creating Menu systems, it is one of 
  13. the best procedures to use as it doesn't tie up memory "spawning" the 
  14. requested program, as most menu shell type programs do.  It is also easy to 
  15. learn the DOS Batch commands as well as the "extentions" Ask provides, thus 
  16. the menu system is easily configured to meet changing use of the system.
  17.  
  18.      For example, suppose you desire to have a batch file that will format a 
  19. diskette, you could write a separate batch file for each type of diskette 
  20. the machine is capable of formatting... or you could "Ask" the user what 
  21. he/she desires, and act upon the users input to make a decision on how to 
  22. format the diskette using Ask.Com. As an example:
  23.  
  24.  @Echo Off
  25.  :format
  26.  Echo.
  27.  Echo         1> Format 3-1/2" Diskette in drive A
  28.               2> Format 5-1/4" Diskette in drive B
  29.               3> OOPS! let me outta here!
  30.  
  31.  Ask n
  32.         if errorlevel 4 goto oops!
  33.         if errorlevel 3 goto end
  34.         if errorlevel 2 goto drivb
  35.         if errorlevel 1 goto driva
  36.         if errorlevel 0 goto oops!
  37.  :oops!
  38.         Echo              Invalid Choice!
  39.         goto format
  40.  :drivb
  41.         Echo  Do you want to format it at 1.2 Meg?
  42.         ask A
  43.                 if errorlevel 2 goto end
  44.                 if errorlevel 1 goto hib
  45.                 if errorlevel 0 goto lob
  46.  :hib
  47.         format b:
  48.         goto end
  49.  :lob
  50.         format b: /f:360
  51.         goto end
  52.  :driva
  53.         Echo  Do you want to format it at 720K?
  54.         Ask A
  55.                 if errorlevel 2 goto end
  56.                 if errorlevel 1 goto loa
  57.                 if errorlevel 0 goto hia
  58.  :hia
  59.         format A:
  60.         goto end
  61.  :loa
  62.         format A: /f:720
  63.         goto end
  64.  :end
  65.  
  66.  
  67.      Ask.Com operates in one of two modes. Alpha-mode will prompt for a Yes, 
  68. No, or Abort and return 0 for no, 1 for yes, and 3 for Abort.  Numeric-mode 
  69. will prompt for  a number, and return the number.  In both cases there is an 
  70. optional  "default" which will be returned if the user simply hits CR 
  71. (enter).
  72.  
  73.      Ask.Com is used with a command-line argument of the form:
  74.  Ask <Function> <optional default>
  75.  Function can be any of:
  76.    H  for a help message.
  77.    W  for licensing info.
  78.    A  for Alpha-mode.
  79.    N  for Numeric-mode.
  80.  
  81.  Default can be any number from 0 thru 255.
  82.  
  83.  
  84.      Ask.Com is one of several utilities developed by G.K. Pace being 
  85. marketed as "Share-Ware" by PaceSoft Utilities.  It is Copyrighted, and all 
  86. rights are reserved by G. K. Pace.  Unlicensed use is prohibited, however 
  87. you are incouraged to try Ask for a brief "trial" period (30 days).  If you 
  88. find it of use to you, and desire to continue to use it, you must register 
  89. it! Single-user/single-system, non-commercial users may obtain a license for 
  90. the use of Ask.Com by sending $10.00 to PaceSoft Utilities. You will recieve 
  91. a license for use, a copy of the latest version, and possibly some other 
  92. useful utilities to try out.  Commercial or other useage will require a 
  93. negoitiated license contact PaceSoft Utilities for further information.
  94.  
  95.      Thank you for trying Ask.Com... I sincerely hope you find it of use to 
  96. you.
  97.                                  G. K. Pace
  98.                                  PaceSoft Utilities
  99.                                  3935 Baker Ave.
  100.                                  Titusville, Fl.  32796
  101.                                  (407)269-3088 (voice)
  102.                                  (407)269-9844 (BBS)
  103.                                  FidoNet @ 1:374/26
  104.  
  105.  
  106.