Switching IP Addresses using Batch files

Having been provided with a client laptop from office, I need to work from home also as and when required. This created a frustrating problem for me.
When at office I had to use the assigned specific IP complete with subnet mask, default gateway and dns servers.
At home my router was configured for DHCP mode.
This let me to constantly change between static ip and DHCP when at office and when I returned to home from office.
To spare me the troubles i wrote 2 small batch files.
One was for when I was at office, which automatically changed the network adapter’s settings specific to the office and the other was for home to quickly revert back to DHCP.
Read the full article…