05-10-2004, 04:45 PM | #1 (permalink) |
Psycho
|
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. |
05-12-2004, 09:01 PM | #2 (permalink) |
Upright
Location: wherever i find myself...there i am
|
Just buy two laptops wouldn't that just be easier?
__________________
~Friends will help you move mountains, best friends...bodies ~I have my good days when i feel truly happy....and then there are the days I wear pants. |
05-13-2004, 02:50 AM | #3 (permalink) |
Psycho
Location: Boston, MAss., USA
|
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'm gonna be rich and famous, as soon I invent a device that lets you stab people in the face over the internet. |
05-13-2004, 07:01 AM | #4 (permalink) |
Not so great lurker
Location: NY
|
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. Last edited by heyal256; 05-13-2004 at 07:08 AM.. |
05-13-2004, 09:02 AM | #6 (permalink) |
Bokonist
Location: Location, Location, Location...
|
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.
__________________
"Beware of the man who works hard to learn something, learns it, and finds himself no wiser than before. He is full of murderous resentment of people who are ignorant without having come by their ignorance the hard way." -Kurt Vonnegut |
Tags |
detect, executing, file, network, specific, wireless |
|
|