@echo off
:--------------------------------------------------------------------------
:            (c) copyright 1988-1994 by Santronics Software
:--------------------------------------------------------------------------
: TITLE: PCBoard 14.5/15.x Xpress Door Batch File
:--------------------------------------------------------------------------

: XPADM will correct the XPRESS_DRIVE and XPRESS_PATH during the quick
: configuration.  Do not remove the labels, XPRESS_DRIVE and XPRESS_PATH.
: Manually correct it if it didn't do it right.

:XPRESS_DRIVE
  C:
:XPRESS_PATH
  CD \XPRESS

:--------------------------------------------------------------------------
: EVERYTHING ELSE BELOW DO NOT NEED TO BE MODIFIED. IT SHOULD WORK AS IS.
:--------------------------------------------------------------------------

: Xpress will use the PCBNODE string to get the current task automatically.
: PCBDOOR allow passage of PCBoard command lines to Xpress. Only a few
: commands are acceptable.

  SET XPA=%PCBDOOR%
  XPMAIL
  SET XPA=

: Switch you back to the PCBoard home drive/directory and restart
: the board. Note this is only valid for PCBoard 14.5 or better.
: First check the INPCB string. This is good for PCBoard 15.0 only

  if "%INPCB%"=="Y" goto exit
  %PCBDRIVE%
  CD %PCBDIR%
  BOARD
:exit
