ip_addr_sttc.bat is the file to set Static IP Address.
ip_addr_dhcp.bat is the file to set IP Address as DHCP. For some reason you need to disable the adaptor before you can change to DHCP, script added.
Remember to change the value of :
name (your adaptor name)
addr (your ip address)
mask (your subnet mask)
gateway (your gateway address)
8.8.8.8 (Preferred DNS)
8.8.4.4 (Alternate DNS)