WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

RAS

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Create a Dial Up Networking - Ras Connectiod

 Keywords: create dun dial up networking ras connectiod connection 

Question:

Do you have an example of how to create a new Dial up networking connection from scratch.

Answer:

Here is an example that creates a *simple* RAS Entry...
AddExtender("wwras34i.dll")

;initalize structure ***IMPORTANT**
RasEntrySet("","")
RasEntrySet("options",0)
RasEntrySet("countryid",1)
RasEntrySet("countrycode",1)
RasEntrySet("areacode","206")
RasEntrySet("phonenumber","5551234")
devicename = "Conexant HCF V90 56K RTAD Speakerphone PCI Modem"
RasEntrySet("devicename",devicename)
RasEntrySet("devicetype","modem")
RasEntrySet("framingprotocol",1)

;Add New entry
newentryname="MyRasConnection"
RasEntryAdd(newentryname, "fred", "yabadabadoo", 1, 0)
Message("Done","New Ras Entry Created")
exit

Article ID:   W15082
File Created: 2002:11:18:14:40:00
Last Updated: 2002:11:18:14:40:00