Create Dial up Connection With a batch file or comand line?

2.4k views Asked by At

I can dial up a dial up internet connection using rasdial command in batch file which is below

rasdial [Connection name] [User] [Password]

but I want a batch file which could actualy create a dial up connection. Shall be very grateful if someone can do it?

1

There are 1 answers

3
pageman On

maybe you can re-purpose this edited script from ghoti:

@ECHO OFF

:loop
Echo Trying to connect to [Connection name] ...
rasdial [Connection name]

ping www.google.com

if NOT %ERRORLEVEL% ==0 goto failed

wait 30

goto loop 

:failed

Echo Failed to connect. [Connection name] are retarded.