@echo off
rem
rem A door batch file is no different than any other batch file on your system.
rem The door batch file should be used to load and execute the door program
rem you want to run.  If the program you run is not capable of communicating
rem with the serial port, your users will not see anything on their screen when
rem the program is running.
rem
rem If you need to run a program as a door which does not communicate with the
rem serial port, you may be able to run it using DOORWAY.  DOORWAY will
rem redraw any program that runs in 80x25 text mode.  The screen is redrawn
rem on the remote user's screen using standard ANSI color codes.
rem
rem To help illustrate that a door batch file is nothing more than a regular
rem batch file, the next two statements will simply check to see what your
rem boot drive is and once found, use the DOS TREE command to show you the
rem subdirectories on your drive.
rem
        if exist c:\autoexec.bat tree c:\
        if not exist c:\autoexec.bat tree a:\
rem
rem The following four lines will make sure that the door always returns to
rem PCBoard (even if the door is configured to operate via shelling).  You
rem can use these four lines at the end of all of your door batch files.
      
      if "%INPCB%" == "Y" exit
      %pcbdrive%
      cd %pcbdir%
      board
rem
rem These four statements first check to see if we shelled out to the door.
rem If so, we exit back to PCBoard.  Otherwise, we change to the drive 
rem and subdirectory where PCBoard executed from and rerun BOARD.BAT.
