DOS Solutions

Home | Top Ten | Networking | Downloads | DOS OS | Links | VBDOS | VBDOS | WATTCP


Dos Solutions', batch and data files used to setup ISP connect and Waterloo TCP


1. myisp.dat
2. dialer.bat
3. ip-up.bat
4. autoexec.bat/config.sys
5. email.bat
6. wiz.dat

-=o0o=-


1. myisp.dat
This data is written into my wattcp.cfg file after successful connection.

domainslist=localdomain  #domanlist and hostname are used by some Wattcp
hostname=localhost      #applications use local if stand alone PC
netmask=0.0.0.0      #I leave netmask set to default 0.0.0.0
nameserver=193.38.113.3  #ISP primary Domain Name Server given by your ISP
nameserver=194.117.157.4 #ISP secondary Domain Name Server
socketdelay=45         #Increase delay for bad/slow connections (timeout), in seconds

-=o0o=-

2. dialer.bat
his is the nuts & bolts of connection and settting of your configuartion
files.

@echo off

REM run dialer batch file

if _%1==_ goto DIALER

REM if dialer.bat has trailing H/h goto HANGUP to end session.

if %1==h goto HANGUP
if %1==H goto HANGUP
        goto SYNTERR  REM if any other trailing letter/symbol goto SYNTERR

:HANGUP
        echo Give'us a Second!
        termin 0x60 > nul     REM terminate packet vector
        lsppp /u           REM unload TSR LsPPP from memory

        set ip=           REM set all address to null
        set myip=
        set remip=
        set netmask=
        set peermru=
        set gateway=
        set DNS1=
        set DNS2=

        echo Connection closed
        goto END

:SYNTERR
        echo Syntax error, call as DIALER or DIALER H
        goto END



REM This is the key area of batch file
:DIALER
        if exist ip-up.bat del ip-up.bat     REM Get rid of old ip-up.bat file
        LH lsppp /a:0 /d:T[ISP PhoneNumber, tone dial] /n:2 /B:115200 /N:DNS1,DNS2 /U:Username /P:Password
        if errorlevel goto CONNERR         REM if LsPPP exits with error code goto CONNERR
        if not exist ip-up.bat goto CONNERR      REM if LsPPP does not produce ip-up.bat exit
        call ip-up.bat                 REM call/run ip-up.bat to set IP addresses
        if exist wattcp.cfg del wattcp.cfg     REM get rid of old wattcp.cfg
        copy myisp.dat wattcp.cfg         REM copy your myisp.dat to wattcp.cfg to create new wattcp.cfg file
        echo my_ip=%MYIP% >>wattcp.cfg         REM echo/copy %MYIP% set by ip-up.bat to new wattcp.cfg file
        rem echo gateway=%REMIP% >>wattcp.cfg     REM echo/copy %REMIP% set by ip-up.bat to new wattcp.cfg file
                        REM I remark out this gateway address and leave it set to default 0.0.0.0,
                        REM because I find it interfers with some apps
        echo mss=%PEERMRU% >>wattcp.cfg     REM echo/copy %PEERMRU% set by ip-up.bat to new wattcp.cfg file
        echo nameserver=%DNS1% >>wattcp.cfg     REM echo/copy %DNS1% (Primary domain name server)set by ip-up.bat to new wattcp.cfg file
        echo nameserver=%DNS2% >>wattcp.cfg     REM echo/copy %DNS2% (Secondary domain name server)set by ip-up.bat to new wattcp.cfg file

REM Now, we setup the configuration file for Lynx similiar to setting up wattcp.cfg


     if exist wizlynx.cfg del wizlynx.cfg
        copy wiz.dat wizlynx.cfg
        echo  >>wizlynx.cfg
        echo my_ip=%MYIP% >>wizlynx.cfg
        echo gateway=%REMIP% >>wizlynx.cfg
        echo mss=%PEERMRU% >>wizlynx.cfg
        echo nameserver=%DNS1% >>wizlynx.cfg
        echo nameserver=%DNS2% >>wizlynx.cfg
        set home=C:\DOSINET             REM Set Home directory for apps to look for
        echo Connection succesful
        goto END

:CONNERR
        echo Connection failed...


:END
exit

-=o0o=-

3. ip-up.bat
This is an example of my ip-up.bat, that is produced by LsPPP and
used to set various address, MTU etc. given by your ISP upon connection.
The Set command makes a variable constant.

set myip=62.31.220.159
set remip=0.0.0.0
set netmask=192.0.0.0
set peermru=1500
set dns1=193.38.113.3
set dns2=194.117.157.4

-=o0o=-

4. autoexec.bat/config.sys
There might be a need to make changes to your autoexec.bat/config.sys files.

config.sys

device=C:\DOS\HIMEM.SYS
device=C:\NET\ifshlp.sys             REM you don't need this it's for Microsoft LAN
dos=high
BREAK ON
SHELL=C:\DOS\COMMAND.COM C:\DOS /E:1024 /P
COUNTRY=044,850,C:\DOS\COUNTRY.SYS
DEVICE=C:\DOS\DISPLAY.SYS CON=(,,1)
INSTALL=C:\DOS\SHARE.EXE /F:8192 /L:120      REM Share is used in DOS for networks
FILES=120                     REM You might need to increase your files
BUFFERS=32                     REM You might need to increase your buffers.
LASTDRIVE=Z
FCBS=16,8
stacks=9,256                     REM You might have set your stacks this is default stack

autoexec.bat

REM Put your internet directory in your path, mine is dosinet

PATH C:\DOS;C:\DSK2;C:\WORD;C:\WP51\;C:\ACRODOS;C:\DOSINET;C:\NET;%PATH%
SET DIRCMD=/W /P
SET TEMP=C:\TEMP
SET TMP=C:\TEMP
SET WATTCP.CFG=C:\DOSINET             REM Set where your wattcp.cfg file can be found
SET DIRETC=C:\DOSINET\ETC             REM Set location of ETC, directory
C:\DOS\MODE.COM CON CP PREP=((850) C:\DOS\EGA.CPI)
C:\DOS\MODE.COM CON CP SEL=850
C:\DOS\KEYB.COM UK,,C:\DOS\KEYBOARD.SYS /ID:166
echo ===============================================
ECHO ******          Internet Setup           ******
echo ===============================================
c:\dos\doskey.com
c:\dos\mouse
C:\DOS\CHOICE /C:YN /T:Y,15 DIAL ISP & CONNECT TO INTERNET  REM choose to dial ISP
IF ERRORLEVEL 2 GOTO END
IF ERRORLEVEL 1 GOTO DIAL

:DIAL
CD DOSINET
ECHO DIALING ISP VIA PPP & SETUP OF TCP/IP
DIALER
GOTO END

:END
exit

-=o0o=-

5. email.bat

I use Netmail www.ressl.com.ar/netmail/index.html and Revobild Netmail utilities www.inti.be/hammer,
also Wiz's Mailer for NetMail MailWiz1 that works well with NetMail's Unix *.wrk/*.txt format.
You can use this batch file to receive,
sort and send any queued mail.

@echo off
REM E-mail batch file to receive mail and sort it if exist.
REM Send mail if exist in [c:\dosinet\mail\smtp\] folder,

nm /receive

if exist c:\dosinet\mail\*.wrk
goto sort

:sort
nm2bag21 c:\dosinet\mail\ c:\dosinet\mail\ken /-m /-z

if not exist c:\dosinet\mail\smtp\*.wrk
echo No email to send
goto end

nm /send
goto end

:end

-=o0o=-

6. wiz.dat
his is the constant data that I want written into my wizlynx.cfg file

domainslist="blueyonder.co.uk"     # this is my ISP
sockdelay=45
tempdir=c:\temp\
textmode=LOW
netmask-0.0.0.0
nameserver=193.38.113.3
nameserver=194.117.157.4
#netmask=0.0.0.0         
#bootp=0.0.0.0                 # We don't need bootp protocol
#bootpto=30
#ethip=00:00:00:00:00:00, 0.0.0.0      # Were not on ethernet LAN
hostname=localhost             # Were the localhost
printer=LPT1
loaded=6                 # number of pages to cache
include=myisp.dat
home=file:///./hotlist.htm
#home=http://www.dossolutions.pwp.blueyonder.co.uk/home.htm
loadhome=ON
graphicsmode=640x480x16
hotlistfile=HOTLIST.HTM
errorhtml=ERROR.HTM
mailaddr=kpkonn@blueyonder.co.uk
networked=YES                 # This has to yes for Internet access
nntphost=news.blueyonder.co.uk
smtphost=smtp.blueyonder.co.uk
smtpusername=username
#http_proxy=http://proxy.mydomain.com:8080/ # Not using proxy server
#gopher_proxy=
#ftp_proxy=
#wais_proxy=
ems=NO                     # WizLynx prefers XMS not EMS
emspages=0x0
xms=YES
xmslength=0
xmsstart=0x0

Well that's all folks!
Happy DOS Surfin ;-)

-=o0o=-

Top | Network Page



Thrus 10 Oct 2002 16:03:40 2002

E-Mail DOS Solutions