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.