Connecting to and disconnecting from the Internet using Dial

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Connecting to and disconnecting from the Internet using Dial

Post by Marcus Tettmar » Wed Jun 11, 1997 11:00 pm

Contributed By: Marcus Tettmar [email protected]
Submitted On: 12/06/97

Windows NT,2k & XP:

Use the RASDIAL command:

Run Program>RASDIAL connection-name

To disconnect:

Run Program>RASDIAL connection-name /DISCONNECT

For more info on this command go to a CMD prompt and type RASDIAL /?

Windows 95,98 & Me:

To initiate a connection to the Internet using Dial Up Networking you can
use the RUNDLL program as follows :

Run Program>RUNDLL rnaui.dll,RnaDial connection-name

Replace connection-name with the name of your dial up connection.
RnaDial and your connection are case sensitive, so match the text
exactly.

If you are using OSR2/ISDN Accelerator or some auto connecting
software, such as DUNCE then that is all you need to do. If not, then you
just need to send some key strokes when the connection dialog box
appears to enter your username and password.

Now, when you want to disconnect the connection use the following
lines :

SetFocus>Connected to connection-name
Press ALT
Send Character/Text>c
Release ALT

Again, the text after SetFocus must be case sensitive and
connection-name must match the name of your DUN connection exactly.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts