Every time You want to change the IP, subnet mask, default gateway and DNS Server of your network connection You usually change settings using this window:

That procedure is unpleasant if repeated every day. To get this done easily You can use the batch files contained in this Zip archive.
Every script file contains some instructions that use the netsh.exe utility (a .cmd file is a batch file that contains a series of commands executed in order; can be run by DOS or Windows) . If You are using a Windows-based computer You already have netsh.exe in your system. If you need more informations about the command "netsh" used in these batch You can click on Start/Run, and enter cmd. The command prompt opens. Enter netsh /? and You'll see its options and parameters.
How to use these script files?
Method # 1 : export/import your network settings
When You are connected to your LAN # 1 (for instance when You are at your workplace) run the script named Export-LAN1.cmd; The file LAN1-settings.txt (containing settings such as the IP address, Subnet Mask, Default Gateway, DNS and WINS addresses) will be created.
When you reach location #2 (and you are successfully connected at your home LAN) run the script named Export-LAN2.cmd; The file LAN2-settings.txt will be created.
After creating the two Txt files you'll never need to manually change LAN settings again: whenever you need to quickly change your network settings and change between LAN #1 and LAN #2, just run the Import-LAN1-Settings.cmd or the Import-LAN2-Settings.cmd files.
Method # 2 : edit the script files
Important: You have to manually change the numbers of the IP, subnet mask, gateway and DNS Server according to your settings before launching the LAN-1.cmd or the LAN-2.cmd batch file.
Just edit the LAN-1.cmd and the LAN-2.cmd file entering the settings of the two networks (You can open the files with Notepad). If you have correctly edited them You can quickly change your LAN settings with a double-click on one of the two file.
If You have to set your computer to obtain its network settings automatically using DHCP you can run the LAN-3-DHCP.cmd script file.
Download









