PDA

Click to See Complete Forum and Search --> : RASAPI and Dial-up networking


Joey72
Oct 15th, 2000, 08:17 PM
Can anyone help,

I tried using a Rasapi call to programatically setup a Dial-up networking shortcut to a new connection, but its all too hard for me at the moment.
I was wondering if anyone out there has access to a utility or VB source code that will allow me click on an exe file (from a floppy), enter a phone number and automatically set up a dial-up connection to an ISP and make the shortcut on the desktop.
There is no need to configure a protocol etc, I just have to help out a few regular Grandma and grandpa users who keep deleting their connection icons. (actually my reasons are sinister...its all about world domination via dial-up networking...its Evil I tell you..eeeevil!)

Oct 15th, 2000, 09:45 PM
Maybe this will help?

Private Command1_Click()
Dim X
'"ConnectionsName" is the name under the icon in Dial-up Networking
X = Shell("rundll32.exe rnaui.dll,RnaDial " & "ConnectionsName", 1)
DoEvents
'You can type in your password before the { below.
SendKeys "{enter}", True
DoEvents
End Sub

Joey72
Oct 15th, 2000, 10:04 PM
The code you've written seems to assume that a dial-up connection called "ConnectionsName" has already been set up.
What I would like the code to do it set the connection details up programatically.
As you would when you manually click on "Make a Connection" and enter the required details.
I would like a connection to be configured via a simple click and reading the details either from a text file or have the user enter the phone number.