Skip to content

RAS\_CreateModemConnection

VB Scripting Library > RAS (Remote Access Services) functions

Creates a new dial-up connection. A modem is required. 
The function fails if you specify a wrong device name

RAS_CreateModemConnection(sConnectionName,sCountryCode,sAreaCode,sTelephoneNumber,sDeviceName,sDialUpType) As Boolean

sConnectionName (String)

A friendly name for the connection

sCountryCode (String)

Prefix country code. Empty string can be specified

sAreaCode (String)

Prefix area code. Empty string can be specified

sTelephoneNumber (String)

Telephone number to be dialed

sDeviceName (String)

Name of the modem, e.g. ZyXEL Omni 56K

sDialUpType (String)

Dial-Up type e.g. PPP or Slip

VBScript

If bStatus Then bStatus = RAS_CreateModemConnection("ACME", "", "", "80808080", "Standard 28800 bps Modem", "PPP")

Scripting Guidelines

RAS_IsRasInstalled RAS_GetConnectionPath RAS_SetTCPIPProperties RAS_SetUIProperties RAS_SetVPNSecurityProperties RAS_DeleteConnection