Jump to content

Recommended Posts

Hi all,

I'd like to know if any one knows how to start up an internet connection from the network control panel.

At this stage I've created a nasty work around - below.

If anyone know how to run this PPPoE dial up connection directly, it'd be appreciated.

$val = Chr(34)
$strRun = $val & "U:\abc\AutoIt\Scripts\Connect to AlwaysOnline.lnk" & $val
Send("#r")
WinWaitActive("Run")
Send($strRun)
Send("{ENTER}")

Thanks

Link to post
Share on other sites

Hi all,

I'd like to know if any one knows how to start up an internet connection from the network control panel.

At this stage I've created a nasty work around - below.

If anyone know how to run this PPPoE dial up connection directly, it'd be appreciated.

$val = Chr(34)
$strRun = $val & "U:\abc\AutoIt\Scripts\Connect to AlwaysOnline.lnk" & $val
Send("#r")
WinWaitActive("Run")
Send($strRun)
Send("{ENTER}")

Thanks

I would suggest trying this.

Run(@ComSpec & " /c " & '"U:\abc\AutoIt\Scripts\Connect to AlwaysOnline.lnk"',"",@SW_HIDE)

Or

Run(@ComSpec & " /c " & 'start "U:\abc\AutoIt\Scripts\Connect to AlwaysOnline.lnk"',"",@SW_HIDE)

I can't remember whether or not you need start with .lnk files.

Edited by hankjrfan
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...