Jump to content
Sign in to follow this  

Programatically create network connections

Recommended Posts

Hi guys.

Is there anyone aware of a method to programatically create a network connection (and edit it if it already exists) instead of launching the net connections window?

I'm using Run(@SystemDir & "\control.exe netconnections") to launch the network connections and I'm having trouble automating the SysListView321 control where the connections are listed.

I'm almost certain there must be a more efficient way than sending commands to controls for something like this, and ?d really, but really appreciate it someone could throw me a lifeboat on this subject.

Thanks in advance


Edited by ivan

Share this post

Link to post
Share on other sites

to create a tcp connection:



Create a socket connected to an existing server.

TCPConnect ( IPAddr, port )

Share this post

Link to post
Share on other sites


Quite aware of that, but I'm actually trying to create a new connection, specifying which modem (dial up and/or wireless) to use depending on the profile of each user in a user list.

wireless networks still require to create the connection and to make life easier for non techs, i've to provide a shortcut to their desktops.

The editing is actually coz users mess around and I've to find a way to correct misconfigured modems.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...