home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_04 / QUERY10.ZIP / QUERY.DOC < prev    next >
Text File  |  1992-01-01  |  6KB  |  149 lines

  1.  
  2.  
  3.                            ╔════════════╗
  4.                            ║ Query v1.0    ║
  5.                            ╚════════════╝
  6.  
  7.                      Copyright 1992 John A. Marks
  8.                      First Release January 01, 1992
  9.  
  10.                            Second Source
  11.                            301 Daniel Webster Hwy
  12.                            Post Office Box 700
  13.                            Merrimack, NH 03054
  14.  
  15.  
  16.                      Files: QUERY.COM    -  The program to run.
  17.                             QUERY.DOC    -  Some facts about the program.
  18.                             QUERYTST.BAT -  Examples using the program.
  19.                             README.1ST   -  About QUERY10.EXE
  20.  
  21.  
  22.  
  23. Did you ever want to ask the user a question without hanging up forever?
  24.  
  25.  
  26. Query is a batch file utility to ask a question which can be answered
  27. yes, no, 1-9, a-z, or A-Z and return the answer as an errorlevel value.
  28. The length of time to wait for an answer can be specified. The question
  29. can be displayed prior to issuing the query command or the question can
  30. be supplied as supplied parameter. If no message and no switch are found
  31. Query displays a "(Y/N)?" prompt.
  32.  
  33.    Examples
  34.     QUERY (display default prompt and wait for a key, if Y or y return
  35.            errorlevel 0 otherwise return errorlevel 1)
  36.     QUERY Load the Network? (same as above but show the query message)
  37.     QUERY /30 Load the Network? (same as above but only wait 30 seconds)
  38.     QUERY /n (wait for a key, number 1-9 returns errorlevel 1-9)
  39.     QUERY /n20 (same as above but only wait 20 seconds)
  40.     QUERY /a (wait for key, alpha a-z returns errorlevel 1-26)
  41.     QUERY /a20 (same as above but only wait 20 seconds)
  42.     QUERY /? (display help information until key is pressed)
  43.  
  44.        switch   meaning
  45.         /y      Yes or no answer expected and an errorlevel of 0 will be
  46.                 returned for a "y" or "Y".  Any other key will return
  47.                 an errorlevel of 1 and a timeout will return an errorlevel
  48.                 of 2. (/y is the default if no switch is specified)
  49.  
  50.         /a      Alpha response expected and errorlevel of 1 - 26 will be
  51.                 returned for the letters A - Z with all input converted to
  52.                 uppercase.  Any other key or a timeout will return
  53.                 an errorlevel of 0.
  54.  
  55.         /n      Numeric response expected and an errorlevel of 1 - 9 will be
  56.                 returned for the numbers 1 - 9. Any other key or a timeout
  57.                 will return errorlevel 0.
  58.  
  59.         /nn     The numeric value of nn establishes a timeout period of
  60.                 nn seconds.  The timeout can be specified in conjunction
  61.                 with any other switch.
  62.  
  63.     return    alpha    numeric    yes/no
  64.     0    t.o./    t.o./
  65.         badkey    badkey    Y                                     
  66.     1    A/a    1    N
  67.     2    B/b    2    t.o. or badkey
  68.     3    C/c    3
  69.     4    D/d    4
  70.     5    E/e    5
  71.     6    F/f    6
  72.     7    G/g    7
  73.     8    H/h    8
  74.     9    I/i    9
  75.     10    J/j
  76.     11    K/k
  77.     12    L/l
  78.     13    M/m
  79.     14    N/n
  80.     15    O/o
  81.     16    P/p
  82.     17    Q/q
  83.     18    R/r
  84.     19    S/s
  85.     20    T/t
  86.     21    U/u
  87.     22    V/v
  88.     23    W/w
  89.     24    X/x
  90.     25    Y/y
  91.     26    Z/z
  92.                                                        
  93.  
  94. DISCLAIMER - AGREEMENT
  95.  
  96. Users of QUERY must accept this disclaimer of warranty:
  97. "QUERY is supplied as is.  The author disclaims all
  98. warranties, expressed or implied, including, without limitation,
  99. the warranties of merchantability and of fitness for any purpose.
  100. The author assumes no liability for damages, direct or conse-
  101. quential, which may result from the use of QUERY."
  102.  
  103. QUERY is a "shareware program" and is provided at no charge
  104. to the user for evaluation.  Feel free to share it with your
  105. friends, but please do not give it away altered or as part of
  106. another system.  The essence of "user-supported" software is to
  107. provide personal computer users with quality software without
  108. high prices, and yet to provide incentive for programmers to
  109. continue to develop new products.  If you find this program
  110. useful and find that you are using QUERY and continue to use
  111. QUERY after a reasonable trial period, you must make a reg-
  112. istration payment of $8.00 to Second Source.  The $8.00
  113. registration fee will license one copy for use on any one
  114. computer at any one time.  You must treat this software just like
  115. a book.  An example is that this software may be used by any
  116. number of people and may be freely moved from one computer
  117. location to another, so long as there is no possibility of it
  118. being used at one location while it's being used at another.
  119. Just as a book cannot be read by two different persons at the
  120. same time.
  121.  
  122. Commercial users of QUERY must register and pay for their
  123. copies of QUERY within 30 days of first use or their license
  124. is withdrawn.  Site-License arrangements may be made by con-
  125. tacting Second Source.
  126.  
  127. Anyone distributing QUERY for any kind of remuneration must
  128. first contact Second Source at the address below for authorization.
  129. This authorization will be automatically granted to distributors
  130. recognized by the (ASP) as adhering to its guidelines for
  131. shareware distributors, and such distributors may begin offering
  132. QUERY immediately (However Second Source must still be advised so
  133. that the distributor can be kept up-to-date with the latest
  134. version of QUERY.).
  135.  
  136. You are encouraged to pass a copy of QUERY along to your
  137. friends for evaluation.  Please encourage them to register their
  138. copy if they find that they can use it.  All registered users
  139. will receive a copy of the latest version of the QUERY program.
  140. We welcome comments and suggestions pertaining to this utility
  141. and will consider them for future releases.
  142.  
  143.   ╔══════╦══════╗                 Second Source
  144.   ║Second║                      301 Daniel Webster Highway
  145.   ╚══════╬══════╗                 Post Office Box 700
  146.          ║Source║                 Merrimack, NH 03054
  147.   ╚══════╩══════╝
  148.  
  149.