home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
b
/
batdoor.zip
/
GETMODE.ZIP
/
GETMODE.DOC
< prev
Wrap
Text File
|
1986-11-21
|
2KB
|
43 lines
Documentation for
GETMODE.COM
GETMODE is a PCBOARD .BAT DOOR utility program that will read the
PCBOARD.SYS file, and determine if the user dropping through the DOOR
was in ANSI graphics mode or not. If so, then an errorlevel of 1 is
returned. If not, then an errorlevel of 0 is returned. If GETMODE is
unable to find PCBOARD.SYS, then an errorlevel of 3 is returned.
The format for GETMODE is: GETMODE drive:\subdirectory(s)\PCBOARD.SYS.
An example of use could be:
ECHO OFF
GETMODE C:\BBS\SYSTEM\PCBOARD.SYS
IF ERRORLEVEL = 3 GOTO ERROR
IF ERRORLEVEL = 1 GOTO ANSI
IF ERRORLEVEL = 0 GOTO ASCII
:ERROR
ECHO_R Unable to open PCBOARD.SYS
:ASCII
COPY RACTER.ASC RACTER.BAT
GOTO RUN
:ANSI
COPY RACTER.ANS RACTER.BAT
:RUN
RACTER
In the above example, you could design menus for a specific door, and
use ANSI graphics depending on the exiting mode of the user. I originally
created this program because I had a specific door that required ANSI.SYS
be installed in the users PC, and using GETMODE, could restrict them from
entering that DOOR unless [M] was set to ANSI.
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ $
$ Compliments of Leo Langevin $
$ SysOp of The BBS of Excellence $
$ (312)398-2872 - 2400/1200/300 $
$ $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$