There are several ways to start a dialup connection from the command line in Windows:
START C:\WINDOWS\Desktop\MyISP.lnk
The following commands can be used to start and open a connection:
START RUNDLL32 RNAUI.DLL,RnaDial exact name of dialer entry
TRACERT -h 1 -w 1
(Credits for these commands: Michael J. Gregg and Tom Lavedas)
The RUNDLL command starts
DUN,
the TRACERT command will actually start the dialing process,
if and only if automatic dialing is enabled.
Windows NT has some additional, dedicated commands for Dial-Up networking (credits: Simon Sheppard):
Usage:
| RASDIAL.EXE | entryname [ username [ password | * ]] [ /DOMAIN:domain ] [ /PHONE:phonenumber ] [ /CALLBACK:callbacknumber ] [ /PHONEBOOK:phonebookfile ] [ /PREFIXSUFFIX ] |
| RASDIAL.EXE | [ entryname ] /DISCONNECT |
| RASDIAL.EXE |
Usage:
| RASPHONE.EXE | [ -v ] [ -f file ] [[ -e | -c | -d | -h | -r ] entry ] |
| RASPHONE.EXE | [ -v ] [ -f file ] -a [ entry ] |
| RASPHONE.EXE | [ -v ] [ -f file ] -lx link |
| RASPHONE.EXE | -s |
x' on dial-up shortcut filea, e,
v, c, d,
h, or r'entry' alone selects the entry in the phonebook dialog