Sign in to follow this  
Followers 0
genocid

pppoe connection

3 posts in this topic

hi. Do you know any script that make a PPPoE connection automatically. I looked through the help but I did not find or do not know what to look, please, I need it

Share this post


Link to post
Share on other sites



hi. Do you know any script that make a PPPoE connection automatically. I looked through the help but I did not find or do not know what to look, please, I need it

I did a very quick search through the forum and found this.

rasdial "My Isp" user pass
rasdial "My Isp" /disconnect

I havn't tried it but it looks about right and shoudl give you want you want.

Share this post


Link to post
Share on other sites

Hi.

You can use this way too:

But before you must uncheck all checkbox from properties of PPPoE shortcut.

Here is:

Posted Image

And Then run script.(Only you need run it first time and it will create startup entry on your registry)

$input=InputBox("Enter PPpOe Shotcut Name","Enter PPPoE shrtcut Name","")
;start up registry key:
; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run  startup key

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run",$input,"REG_SZ","rasphone.exe -d " & $input)
MsgBox(64,"Operation Done!","Operation Done Successfully!",3)
Exit

[size="5"] [/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0