Stephen Sulzberger’s Blog

December 21, 2007

Batch file: automatic ipconfig release and renew

Filed under: Batch files,Windows tips/tricks — Stephen @ 3:04 pm

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”. 

Blog at WordPress.com.