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 >
Wrap
Text File
|
1992-01-01
|
6KB
|
149 lines
╔════════════╗
║ Query v1.0 ║
╚════════════╝
Copyright 1992 John A. Marks
First Release January 01, 1992
Second Source
301 Daniel Webster Hwy
Post Office Box 700
Merrimack, NH 03054
Files: QUERY.COM - The program to run.
QUERY.DOC - Some facts about the program.
QUERYTST.BAT - Examples using the program.
README.1ST - About QUERY10.EXE
Did you ever want to ask the user a question without hanging up forever?
Query is a batch file utility to ask a question which can be answered
yes, no, 1-9, a-z, or A-Z and return the answer as an errorlevel value.
The length of time to wait for an answer can be specified. The question
can be displayed prior to issuing the query command or the question can
be supplied as supplied parameter. If no message and no switch are found
Query displays a "(Y/N)?" prompt.
Examples
QUERY (display default prompt and wait for a key, if Y or y return
errorlevel 0 otherwise return errorlevel 1)
QUERY Load the Network? (same as above but show the query message)
QUERY /30 Load the Network? (same as above but only wait 30 seconds)
QUERY /n (wait for a key, number 1-9 returns errorlevel 1-9)
QUERY /n20 (same as above but only wait 20 seconds)
QUERY /a (wait for key, alpha a-z returns errorlevel 1-26)
QUERY /a20 (same as above but only wait 20 seconds)
QUERY /? (display help information until key is pressed)
switch meaning
/y Yes or no answer expected and an errorlevel of 0 will be
returned for a "y" or "Y". Any other key will return
an errorlevel of 1 and a timeout will return an errorlevel
of 2. (/y is the default if no switch is specified)
/a Alpha response expected and errorlevel of 1 - 26 will be
returned for the letters A - Z with all input converted to
uppercase. Any other key or a timeout will return
an errorlevel of 0.
/n Numeric response expected and an errorlevel of 1 - 9 will be
returned for the numbers 1 - 9. Any other key or a timeout
will return errorlevel 0.
/nn The numeric value of nn establishes a timeout period of
nn seconds. The timeout can be specified in conjunction
with any other switch.
return alpha numeric yes/no
0 t.o./ t.o./
badkey badkey Y
1 A/a 1 N
2 B/b 2 t.o. or badkey
3 C/c 3
4 D/d 4
5 E/e 5
6 F/f 6
7 G/g 7
8 H/h 8
9 I/i 9
10 J/j
11 K/k
12 L/l
13 M/m
14 N/n
15 O/o
16 P/p
17 Q/q
18 R/r
19 S/s
20 T/t
21 U/u
22 V/v
23 W/w
24 X/x
25 Y/y
26 Z/z
DISCLAIMER - AGREEMENT
Users of QUERY must accept this disclaimer of warranty:
"QUERY is supplied as is. The author disclaims all
warranties, expressed or implied, including, without limitation,
the warranties of merchantability and of fitness for any purpose.
The author assumes no liability for damages, direct or conse-
quential, which may result from the use of QUERY."
QUERY is a "shareware program" and is provided at no charge
to the user for evaluation. Feel free to share it with your
friends, but please do not give it away altered or as part of
another system. The essence of "user-supported" software is to
provide personal computer users with quality software without
high prices, and yet to provide incentive for programmers to
continue to develop new products. If you find this program
useful and find that you are using QUERY and continue to use
QUERY after a reasonable trial period, you must make a reg-
istration payment of $8.00 to Second Source. The $8.00
registration fee will license one copy for use on any one
computer at any one time. You must treat this software just like
a book. An example is that this software may be used by any
number of people and may be freely moved from one computer
location to another, so long as there is no possibility of it
being used at one location while it's being used at another.
Just as a book cannot be read by two different persons at the
same time.
Commercial users of QUERY must register and pay for their
copies of QUERY within 30 days of first use or their license
is withdrawn. Site-License arrangements may be made by con-
tacting Second Source.
Anyone distributing QUERY for any kind of remuneration must
first contact Second Source at the address below for authorization.
This authorization will be automatically granted to distributors
recognized by the (ASP) as adhering to its guidelines for
shareware distributors, and such distributors may begin offering
QUERY immediately (However Second Source must still be advised so
that the distributor can be kept up-to-date with the latest
version of QUERY.).
You are encouraged to pass a copy of QUERY along to your
friends for evaluation. Please encourage them to register their
copy if they find that they can use it. All registered users
will receive a copy of the latest version of the QUERY program.
We welcome comments and suggestions pertaining to this utility
and will consider them for future releases.
╔══════╦══════╗ Second Source
║Second║ 301 Daniel Webster Highway
╚══════╬══════╗ Post Office Box 700
║Source║ Merrimack, NH 03054
╚══════╩══════╝