Intermec 6100 Guia De Referência

Página de 328
SECTION 1
Getting Started
PEN*KEY
R
 6100 Computer Programmer’s Reference Guide    1-29
DELAY.EXE:  Display Message, Wait, Pause, Return Error Level
Serves four functions:
"
Display a message to the screen (like the Echo command)
"
Wait for some amount of time to expire before continuing (like a Sleep comĆ
mand or DOS 6 Choice command with a timeĆout specified)
"
Pause system execution until a key is pressed (like the Pause command)
"
Return an error level based on which key, if any, was pressed (like the DOS
6 Choice command)
The first three functions can be performed even when DELAY is loaded as a deĆ
vice driver.  Since the error level concept does not apply to CONFIG.SYS processĆ
ing, the fourth function applies only to command line (or batch file) execution.
1. To display the message Press any key to continue. . ., no command line paĆ
rameters are required.  To display one or more different messages, supply
the new messages in double quotes on the command line.  Each quoted text
string displays on a separate line.  A null message (") can be used to disĆ
play a blank line.  To keep the cursor positioned immediately following the
last character displayed, do not supply the trailing quote (").  To simply disĆ
play a message without waiting for either a timeĆout or a key press, specify
a delay timeĆout of zero (/0).
2. To force DELAY to exit after a period of time has elapsed, even if no key has
been pressed, specify a /nnnn" switch on the command line anywhere, even
within quoted text.  The value of nnnn is the decimal value for how many
hundredths of seconds that must elapse before DELAY automatically exits.
The maximum delay is about 640 seconds (or about 10 minutes).
3. No command line parameter is required to cause this program to wait for a
key press.  DELAY always exits whenever a key is pressed, even if it is
waiting for time to elapse first.
4. When DELAY is executed from a command shell, as opposed to being
loaded as a device driver, the error level set upon return is based on the
key, if any, that was pressed prior to exiting.  The return value is specificalĆ
ly geared to make it easy to tell which numeric key was pressed.
Table 1Ć7 
DELAY.EXE Error Levels
Error Level
Key Pressed
0
`0'
1
`1'
2
`2'
3
`3'
4
`4'
5
`5'
6
`6'
7
`7'
8
`8'
9
`9'
10
`:'
11
`;'
12 to 154
The values returned consist of the key value minus 30h.
255
No key was pressed; the time expired first
1. Getting Started