|
RAS commands |
|||
|
RAS Commands for AutomationWizard %System[WinRAS, Dial, PbEntryName, username, password ] %System[WinRAS, Hangup, connid ] %System[WinRAS, Enumconnections ] %System[WinRAS, FreeConnections, connid ] %System[WinRAS, NumConnections, enumid ] %System[WinRAS, ConnectionInfo, enumid, position, conninfo ] DescriptionDial and connect to a remote server. Syntax%System[“WinRAS, Dial, PBEntryName, username, password”] Where: PbEntryName: specifies the phonebook entry name username: specifies the username password: specifies the password ReturnsRAS connection id number (referred to as connid ) which must be used in most RAS calls. failure returns 0 Example%ras = %System["WinRas, Dial, internet, username, password"] DescriptionHang up a RAS connection Syntax%System[“WinRAS, Hangup, connid”] Where connid: ras connection id Example%tmp = %System["WinRas, Hangup, ", %ras] DescriptionEnumerate all active RAS connections. Syntax%System[“WinRAS, Enumconnections”] Returns%$: enumeration id number (referred to as enumid) that must be used in all enum commands or 0 if there are no connections RemarksYou must call FreeConnections when you are finished with the results Example%enumid = %System["WinRas, EnumConnections"] DescriptionFrees the results retrieved by the Enumconnections command Syntax%System[“WinRAS, FreeConnections, connid”] Where: enumid: enumeration id Example%tmp = %System["WinRas, FreeConnections, ", %enumid] DescriptionReturns the number of connections Syntax%System[“NumConnections, enumid Where: enumid: enumeration id Example%numconnections = %System["WinRas, NumConnections, ", %enumid] DescriptionGets connection parameters retrieved by the EnumConnections command. Syntax%System[“WinRAS, ConnectionInfo, enumid, position, conninfo”] Where: enumid: enumeration id position: start at 0, increment for next connection conninfo: "Does_Exist" $%: returns “Yes” or 1 if there is a connection at position and “No” or 0 if there isn't a connection at position "connid" %: returns connection id of this connection to be used in the other RAS commands "entryname" $: returns the phonebook entry name of this connection ReturnsDepends on conninfo, always returns "Not_Found" for $ or -1 for % if no more connections left. Example%connid = %System["WinRas, ConnectionInfo, ", %enumid, ", 0, connid"]
|
|||
|
|
|||