Jump to content

pppoe connection


Recommended Posts

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.

Link to comment
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]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...