REM Beispiel fuer EXTMAIl.CMD von Binkley

@echo off
CLS
IF %5 == 131  goto PPPCOM3
IF %5 == 132  goto PPPCOM5
IF %5 == 133  goto PPPCOM7
IF %5 == 134  goto PPPCOM8
IF %5 == 99   goto FAXIN
pause
GOTO ENDE

:PPPCOM3
REM PPP ON LINE 1 COM3

start /C ROUTPPP0.cmd
ppp.exe com3 %1 mru 1500 rtscts modem 192.168.2.1: netmask 255.255.255.0 priority 1 restart silent exit name gate1 +pap

REM lsche Eintrag von ROUTPPP0.CMD aus der Rooting.Tabelle
REM Route  delete (default , host , net ) oder was immer ROUTEPPP0 gesetzt hat
route delete host 192.168.2.11 192.168.1.1 1
GOTO ENDE

:PPPCOM5
REM PPP ON LINE 2 COM5

rem start /C ROUTPPP1.cmd
ppp.exe com5 %1 mru 1500 rtscts modem 192.168.2.2: netmask 255.255.255.0 priority 1 restart silent exit name gate2 +pap

REM lsche routing
REM Route  delete (default , host , net ) oder was immer ROUTEPPP0 gesetzt hat
GOTO ENDE

:PPPCOM7
REM PPP ON LINE 3 COM7

START /C ROUTISDN1.cmd
ppp.exe com7 57600 mru 1500 rtscts modem 192.168.2.3: netmask 255.255.255.0 priority 1 restart silent exit  name ISDN2 +pap

REM lsche routing
Route  delete host 192.168.2.13 192.168.2.3 1

GOTO ENDE


:PPPCOM8
REM PPP ON LINE 4 COM8

START /C ROUTISDN2.cmd
ppp.exe com8 57600 mru 1500 rtscts modem 192.168.2.4: netmask 255.255.255.0 priority 1 restart silent exit name ISDN2 +pap

REM lsche routing
Route  delete host 192.168.2.13 192.168.2.3 1
GOTO ENDE

:FAXIN
Rem Die Faxsoft halt
\dfue\fax\bgfax2 /fco:4 \dfue\fax\IN h%3 f
:ENDE
