home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
b
/
batdoor.zip
/
GETKEY_R.ZIP
/
GETKEY_R.DOC
< prev
next >
Wrap
Text File
|
1986-12-07
|
2KB
|
64 lines
Documentation for
GETKEY_R.COM
BACKGROUND
Many more BBS systems are implementing the "DOORS" concept. What this
means is that the user slips out of the BBS and into another application
while still in remote mode. There are two ways of doing this. One way is
to use the "CTTY" command. This can be a security problem, in that the
local control is lost, and a user who breaks out of a program can literally
wipe out your system.
A second method is to have all remote users exit into a program or
system of programs that output to COMx: and the local CRT as well as read
input from COMx: and the local keyboard. This way there is no danger in
losing valuable information.
GETKEY_R is one such program. It allows the SysOp to create a Batch file
system for remote users. GETKEY_R will wait for a key to be pressed, either
remotely or locally. Then it will return the ASCII code the the key pressed
in the ERRORLEVEL for a .BAT file compare. It will only allow the keys
1-9, and A-Z to be pressed. Upper case translation is done automatically,
so you do not have to check for "a" as well as "A".
You can also limit the keys allowed to be pressed by placing these in
the command line.
Example:
To await a "Y" or "N" response, you could have:
ECHO OFF
WATCHDG1 ON
ECHO_R You are about to meet RACTER
ECHO_R
ECHO_R Do you want to continue [Y] or [N]?
GETKEY_R YN
IF ERRORLEVEL 89 GOTO RACTER
IF ERRORLEVEL 78 GOTO EXIT
:RACTER
RACTER
WATCHDG1 OFF
ECHO_R Returning to The BBS of Excellence
:EXIT
BOARD
The constants for COM1: can be modified easily. For this reason, I
have provided the source code. For COM2:, use GETKEYR2.COM.
Important!!!
This program make two assumptions:
1. That the COMx: serial board is installed
2. That the Modem is functioning
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ $
$ This program was writen by Leo Langevin, SysOp of: $
$ $
$ The BBS of Excellence - Data: (312) 398-2872 $
$ $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$