@echo off
m:
cd m:\ccrouter\tristero

rem
rem Tristero --- TaskMgr Command File for OS/2 Router
rem
rem change 'tristero' to match the namegiven by GatewayPO in tristero.ini
rem change 'password' to the password of the post office at m:\ccdata
rem change 'Silver-HQ' to the name of the post office at m:\ccdata

m:\ccadmin\export2 tristero password m:\ccdata @tristero.exp NAME/1 HILITE FILES/HEX
tristero
del tristero.exp >nul
if exist tristero.imp m:\ccadmin\import2 Silver-HQ password m:\ccdata @tristero.imp NAME/1 PARTIAL HILITE FILES/HEX
if exist tristero.adm m:\ccadmin\import2 Silver-HQ password m:\ccdata @tristero.adm NAME/1 PARTIAL HILITE

rem check for import failures
if exist ccmail.und copy tristero.rej+ccmail.und tristero.adm
if exist tristero.adm m:\ccadmin\import2 Silver-HQ password m:\ccdata @tristero.imp NAME/1 PARTIAL FILES/HEX
if exist ccmail.und del ccmail.und

rem optionally import ADE updates
if exist tristero.ade m:\ccadmin\import2 Silver-HQ password m:\ccdata @tristero.ade NAME/1 DIRECTORY

rem Or optionally squelch them
rem if exist tristero.ade del tristero.ade

cd m:\ccrouter
