@echo off
rem Freeware Dialer Batch File for use with Minuet  
rem designed to help you get started, use your initiative from here.
rem  enter nameservers and gateways in Minuet Setup
rem ( follows convention for directory naming used with Bobcat)
rem also see mindial.doc
rem Happy browsing from VE3LGS

cls


echo.
echo             ���������������������������������ͻ
echo             �          Dialup Minuet          �
echo             ���������������������������������ͼ
echo.

echo.
echo          Automated Session starting
echo.
echo          Dialing ....
echo.

:DIAL
rem dial up the ISP
NETDIAL BASE 0xMYBASE IRQ MYIRQ MYSPEED
rem        :    :
rem        :  speed - must be the same for this line and the packet driver.
rem        :
rem      comport - must be the same for both
rem                netdial lines and the packet driver lines ( hangup too) 
            
IF ERRORLEVEL 1 GOTO BUSY
goto PKTDRVR

:BUSY
setscrn
echo.
echo             ���������������������������������ͻ
echo             �        Minuet Re-Dialer         �
echo             ���������������������������������ͼ
echo.
	echo No Response.. will redial automatically ...Esc to quit
	echo.
	Holdit  20 > nul
	if errorlevel 200 goto END
	if errorlevel 0 goto DIAL
	setscrn
	goto DIAL

:PKTDRVR
rem logged in, so start the Packet driver 
epppd base 0xMYBASE irq MYIRQ pktvec 0xMYVEC MYSPEED asyncmap 0 crtscts

call IP-UP.bat
echo Ip address set to %MYIP%

if errorlevel 1 goto END


:Minuet
rem change to the Minuet directory
cd .\MINUET
Minuet

:END

rem change back to the  Dialer directory
cd ..

rem  remove the packet driver and hang up the phone
 termin 0xMYVEC 
rem      :
rem    vector should be same as used when loading Packet driver 

netdial BASE 0xMYBASE IRQ MYIRQ hangup
rem        :
rem     comport should be the same as 2 other places in batch file

