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   
Text File  |  1986-11-21  |  2KB  |  43 lines

  1.                           Documentation for
  2.                              GETMODE.COM
  3.  
  4.    GETMODE is a PCBOARD .BAT DOOR utility program that will read the
  5. PCBOARD.SYS file, and determine if the user dropping through the DOOR
  6. was in ANSI graphics mode or not. If so, then an errorlevel of 1 is
  7. returned. If not, then an errorlevel of 0 is returned. If GETMODE is
  8. unable to find PCBOARD.SYS, then an errorlevel of 3 is returned.
  9.  
  10.    The format for GETMODE is:  GETMODE drive:\subdirectory(s)\PCBOARD.SYS.
  11.  
  12.    An example of use could be:
  13.  
  14.       ECHO OFF
  15.       GETMODE C:\BBS\SYSTEM\PCBOARD.SYS
  16.       IF ERRORLEVEL = 3 GOTO ERROR
  17.       IF ERRORLEVEL = 1 GOTO ANSI
  18.       IF ERRORLEVEL = 0 GOTO ASCII
  19.       :ERROR
  20.       ECHO_R Unable to open PCBOARD.SYS
  21.       :ASCII
  22.       COPY RACTER.ASC RACTER.BAT
  23.       GOTO RUN
  24.       :ANSI
  25.       COPY RACTER.ANS RACTER.BAT
  26.       :RUN
  27.       RACTER
  28.  
  29.    In the above example, you could design menus for a specific door, and
  30. use ANSI graphics depending on the exiting mode of the user. I originally
  31. created this program because I had a specific door that required ANSI.SYS
  32. be installed in the users PC, and using GETMODE, could restrict them from
  33. entering that DOOR unless [M] was set to ANSI.
  34.  
  35.  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  36.  $                                  $
  37.  $  Compliments of Leo Langevin     $
  38.  $ SysOp of The BBS of Excellence   $
  39.  $ (312)398-2872  - 2400/1200/300   $
  40.  $                                  $
  41.  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  42.  
  43.