Reputation: 246
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?
Upvotes: 0
Views: 2545
Reputation: 3022
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.
Upvotes: 0