home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MENU
/
FSTMNU52.ZIP
/
FMTASK.DOC
< prev
next >
Wrap
Text File
|
1990-04-22
|
2KB
|
25 lines
┌───────────────────────────────────────────────────────────────┐
│ FMTASK.COM - This little program accepts a single keystroke │
│ and sets the error level on return to DOS. │
│ I know everyone has one of these! Here's mine. │
├───────────────────────────────────────────────────────────────┤
│ Syntax: FMTASK <prompt> <$valid-responses> │
│ │
│ Example: FMTASK Is this a nifty program? $YN │
│ If ErrorLevel 89 If Not ErrorLevel 90 Echo YES! │
│ If ErrorLevel 78 If Not ErrorLevel 79 Echo NO?? │
│ │
│ Both <prompt> and <$valid-responses> are optional. │
│ If a neither is supplied, FMTASK simply waits for a key │
│ to be pressed and returns an ErrorLevel equal to the ASCII │
│ code of the key pressed. Valid response keys are denoted │
│ with a "$". Any other key will produce a beep only. │
│ If a string of valid responses is not supplied, FMTASK will │
│ accept any key pressed and then return the ASCII code. │
│ The valid response characters are converted to upper case │
│ as well as any keys pressed. (i.e. you can not receive │
│ any ASCII codes for lower case letters.) │
└───────────────────────────────────────────────────────────────┘