Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: rasentryadd rasentryset error 220
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
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.....
Article ID: W15419
File Created: 2003:05:13:11:27:38
Last Updated: 2003:05:13:11:27:38