If you use windows and need to change static network settings of your network interface card for the different networks you visit you can do this with a script. This is needed because windows only offers primary and secondary network settings for static network info. If you visit more than 2 networks on a regular basis then you would have to keep changing your network settings by hand. So I wipped up a batch file that will change the static settings for you. Just edit the settings below for your own network.
Then put the edited lines in a text file and save it. Rename the text file's extention to ".bat". We are just making a batch file to execute the commands. If the icon does not change from a text file to the batch file icon after you rename it then you will need to turn off "Hide file extentions of known file types". Do this by right clicking on the start menu and selecting "Explore". In file explorer click Tools->Folder Options->View (tab). Then uncheck "Hide file extentions of known file types". Ok out of all of that. Rename the file again and make sure it's extention is ".bat". Then just double click on the file to run the settings. Make a batch file for each network you visit. This should work in Win2k or XP.
Changes static network settings and DNS
netsh interface ip set address name="Local Area Connection" source=static addr=192.168.0.2 mask=255.255.255.0 gateway=192.168.0.1 1
netsh interface ip set dns name="Local Area Connection" source=static addr=192.168.0.1
Changes network settings from static to dhcp
netsh interface ip set address name="Local Area Connection" source=dhcp
netsh interface ip set dns name="Local Area Connection" dhcp