In windows 95/98, you can call on the Rnaui.dll to dial an entry.
To call it from VB we can use VB's shell function:
Call Shell("Rundll Rnaui.dll,RnaDial " & "My Connection")
where My Connection
is the
name of a dial-up connection entry.
Whether or not any dialogues are presented to the user will depend on the user's settings for the entry.
In windows NT, you can call on the rasdial.exe to dial an entry.
To call it from VB we can use VB's shell function:
Call Shell("RASDIAL " & "MyConnection")
where MyConnection
is the
name of a dial-up connection entry. Note: if the name of the entry has a space
in it, you must enclose it in quotation marks eg:
Dim strEntryName as String strEntryName ="My Connection" Call Shell("RASDIAL " & chr$(34) & strEntryName & chr$(34))
You can also specify the username and password
Call Shell("RASDIAL " & chr$(34) & strEntryName & chr$(34) & _ " " & strUserName & " " & strPassword)
See Also: Contents, Introduction, RasDial