ivan Posted September 5, 2006 Share Posted September 5, 2006 (edited) 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 IVAN Edited September 5, 2006 by ivan Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
ramadash Posted September 5, 2006 Share Posted September 5, 2006 to create a tcp connection:TCPConnect --------------------------------------------------------------------------------Create a socket connected to an existing server.TCPConnect ( IPAddr, port ) Link to comment Share on other sites More sharing options...
ivan Posted September 5, 2006 Author Share Posted September 5, 2006 Thx. 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. Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
ivan Posted September 8, 2006 Author Share Posted September 8, 2006 Just for the sake of completion, here's how to run the wireless network wiz run('RunDll32.exe shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW') requires xp service pack 2 Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now