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”.
you might want to mention that it should be saved in the current users default directory or at least that is what works
best for me. I put it into c:\documents\ and named it reset.bat
When I open a cmd shell, I just type reset and bob’s your uncle,I’ve got a proper IP address on the new network.
Thanks loads for this. I’ve been typing this by hand for ages (like 9 years or so) when the bulb finally went off and I said why not a batch file – I haven’t written a dos batch file in 20 years, so I googled and found yours. Works like a charm, very handy when I move my laptop from work to home and use hibernate.
Thanks again … (btw substitute your actual user account name where I typed – if you are not certain what it is , open a cmd shell and it will become obvious.- this tip is for others who stumbled upon this site from google, I’m sure the author knows all about this sort of thing.
Comment by Bill Gates — April 16, 2009 @ 5:35 pm |
Excelent batch, I named it “red.bat” and put the file at c:\windows,
plus another batch file at the desk named reset.bat with two lines:
cd c:\windows
red.bat
..or better put it on the fast start menu bar, at a mouse click.
Comment by Fidencio Ondarza — July 7, 2009 @ 8:29 pm |