What must I do to cause a script or batch file to be run when the computer succeeds connecting to a network with a specific SSID, in Windows 7 Ultimate?
I need it to be triggered by connecting to a wireless network, so doing timed checks won't be a solution in my case (timed checks for specific IPs have been proposed in a similar question). I have also tried Net Profiles but it refuses to run (I haven't found a solution for this), so I want to do this without Net Profiles.
This will be used in a small company's office. For example, among the other tasks that connecting to our network will trigger, one of them is running a batch file that replaces certain files (one of them is hosts, to associate our file server's alias with its LAN ip when the laptops connects to our WLAN, and to associate the same alias with that server's 'no-ip' address as soon as it disconnects from our WLAN). Since the above example is not the only task that this mechanism needs to do, an alternate solution that only solves the problem of selecting the correct hosts file won't work, unfortunately.