Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switching from a Network Connection to another

Status
Not open for further replies.

FoxAll

Programmer
Jun 13, 2003
49
CA
Hello All,

I’m trying to find a way to switch programmatically from a network connection to another. For example, I have a cellular modem connected to my laptop. I also have a WiFi Network Interface. The cellular modem cost me money when I use it. But, some times, I have access to “Free Public Wireless Network” that I can use to transfer data over the Internet. So, I’m searching a way to use Public connection automatically when it’s available, without human intervention. And go back on cell if public is not available.

Do you know an ActiveX that can help me to browse the available Wireless network? Like type of connection, quality, Password required, ping etc…

Or.. it possible to make it with existing Windows API /DLL ?

If you have Any experiences with this, or have comments, questions or links…please feel free to send it to me.

Thank you.

Martin
 
It looks like this is easy to do in Windows CE (PocketPC/SmartPhone).. There's a whole API just for manipulating the network connection:

However, it seems these functions don't exist in WinXP...

The closest thing I can find for desktop windows is the Windows Networking Reference, and Network Management functions/reference:



- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
This may be just what you're looking for:

This is a standard Windows 2k/XP component, NETSH, that is scriptable (and therefore you can create a script in VFP and launch NETSH.EXE with it...), and which seems to resemble the cisco IOS in many ways (command contexts, particularly).

You may have to run the command several times (once to capture the output, then again to deactivate/reactivate network interfaces), but it may also be programmable (though the docs say it's designed for C++ programmers...)

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top