![]() |
Executing a File When I Detect a Specific Wireless Network
I did a search and didn't find anything pertaining to my question:
In order to switch from DHCP to a static IP address (and vice versa) I have two batch files I run in order to set my TCP/IP settings to either: 1. Detect IP and DNS (DHCP) 2. Set my own static IP, DNS, etc. So for my home wireless network, I'd like to have a static address, not assigned via DHCP. But for the wireless network at work, I need to have DHCP configure IP, DNS, gateway, etc etc for me. Is there any way I can have my batch files run automatically when I connect to a specific network? I'm on a Windows laptop, and I can either use the WinXP Zero Config or the Intel Proset utility (it's a Centrino) to connect, although I find the Intel Proset generally more reliable. Any other ideas to accomplish this are welcome. |
Just buy two laptops wouldn't that just be easier? :)
|
Can't you use hardware profiles for this? Have one profile for work, with DHCP< and one for home, with static? YOur not keeping the computer on between home and work, so when you boot, simply select the approprate profile.
|
I remember that there were some network settings switcher that could be used (extra 3rd party software) that allowed you to save the ip settings needed for various networks that you could connect to. i'll do a search and edit this post if i find something.
edit: here is a site with some info of that might help http://www.practicallynetworked.com/...g/ipswitch.htm I don't know if there is any way to automatically run the batch file when a specific network is detected tho, since I think that the nics only detect a network connection. |
the "alternate configuration" tab under the TCP/IP settings for the card will do this for you.
|
If your wireless network drivers load some sort of configuration tool, you might be able to hook into the loading of that tool.
i.e. my wireless network card is a netgear card...when i plug it into the USB slot, the configurator appears in the system tray as a subclassed icon. You could either look for that process being loaded or look for that subclassed icon with the Windows API. |
All times are GMT -8. The time now is 10:53 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project