Handy for wireless network cards/connections that drop out.
@echo off
ipconfig /release
echo
echo The IP address has been released. Waiting to renew…
echo
ipconfig /renew
echo The IP address has been renewed
Save to a new text file and rename the extension to “.bat”.