Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


RasEntryAdd Error 220

 Keywords: rasentryadd rasentryset error 220 

Question:

Trying to create a new DUN connection for Win98/95.. Everything seems to go until it comes time to write the entry, then i get a 220 error.

Here is my script:

AddExtender("wwras34i.dll")
AddExtender("wwser34i.dll")
;
; identify modem
; 
MyModemIsOn=askline("Modem Port","What port is your modem on (ex: com1,com2)","")
port=pComOpen(MyModemIsOn,0,57600,"8N1","RTSRTS")
MyModemCommand="ATI3"
pTimeout(port,2000)
pPutLine(port,MyModemCommand)
resp=pGetString(port,80)
mdmname=strsub(resp,8,28)
;
; close modem port
;
; identify user
;
user=AskLine("Netwok login ID", "Please enter your Login Id for the ADEQ Network", "")
pw = AskPassword("Password Entry", "Please enter your password for the ADEQ Network")
;
; default 
;
entryname="ADEQ2"
;
rasentryset("countryid","1")
rasentryset("countrycode","1")
rasentryset("areacode","602")
rasentryset("phonenumber","264-5720")
rasentryset("devicename",mdmname)
rasentryset("devicetype","modem")
rasentryset("ipaddr","0.0.0.0")
rasentryset("ipaddrdns","159.87.9.26")
rasentryset("ipaddrdnsalt","159.87.9.33")
rasentryset("ipaddrwins","0.0.0.0")
rasentryset("ipaddrwinsalt","0.0.0.0")
rasentryset("framesize","1500")
rasentryset("netprotocols","4")
rasentryset("framingprotocol","1")

;Add New entry
;
RasEntryAdd("%entryname%","%user%", "%pw%", 1, 0)
Message("Done","Adeq Dial-up Created")
pComClose(port,0)
exit 

Answer:

Make sure you are using the very latest version of the Ras Extender.

Add RasEntrySet("","") to the beginning of all the RasEntrySet statements. RasEntrySet("","") clears out the element buffer.

RasEntrySet will return the string '***Not Supported**', if the element you specifiy is not supported on that platform.

Make sure the 'Device name' is getting defined.....