Jump to content

Recommended Posts

Posted (edited)

You might be better served by making an executable that calls the Dial-Up Network by name. Not sure if this is what you were looking for, but I hope it helps some.



Global $strConnectionName = 'Dial-up Connection' ; The actual name of the DUN Connection
Run(@ComSpec & ' /c %Systemroot%\System32\Rasphone.exe -d "' & $strConnectionName & '"', @TempDir, @SW_HIDE)

*Edit: Altered code block to show AutoIT syntax highlight

Edited by Wruck
Posted

You might be better served by making an executable that calls the Dial-Up Network by name. Not sure if this is what you were looking for, but I hope it helps some.



Global $strConnectionName = 'Dial-up Connection' ; The actual name of the DUN Connection
Run(@ComSpec & ' /c %Systemroot%\System32\Rasphone.exe -d "' & $strConnectionName & '"', @TempDir, @SW_HIDE)

*Edit: Altered code block to show AutoIT syntax highlight

Thanks in advance.But what  you posted in the post is not my wanted.  I wrote a Script to auto-create Dial-up Connection,I want to create a link file in the desktop like the manually-created link did.

董小姐,你微笑的时候很美,就像安河桥下,清澈的水...

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
×
×
  • Create New...