How To: Create A Batch File To Renew Your IP Address And Refresh Network Settings In Windows Vista

The ipconfig command is most commonly used at the DOS (Disk Operating System) prompt to see a Windows based computer’s current ip configuration.Using the ipconfig command with three different switches also allows you to refresh a Windows Vista computer’s network settings and also renew the ip address which can be very useful when troubleshooting network issues.(Also If you tried downloading files from file sharing site like rapidshare,megashare etc, you might have encountered that you had to wait for sometime as a free before you download the next file,but most of these sites block you based on the IP Address and here’s how you can overcome this problem if you are on Dynamic IP).For this you can easily create a batch file in Windows Vista that will run the ipconfig command along with its switches to quickly refresh a computer’s network settings and also renew its ip address.

Batch File To Renew Your IP Address And Refresh Network Settings In Windows Vista

runas /user:local\administrator
ipconfig /release
ipconfig /flushdns
ipconfig /renew

Place the batch file on the Windows Vista desktop and run it whenever you want to renew your ip Address.

Note :

Another Method You Can Try:

Here’s another easier method that we do the above trick with a desktop shortcut to the cmd window with the arguments appended to the command.In this case there is no batch file, just a pointer to the command prompt with added arguments.

target:
%windir%\system32\cmd.exe /C ipconfig/release & ipconfig/renew & ipconfig/registerdns

start in:
%windir%

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

Popularity: 5%

Did You Like This Post? Then You Might Find These Also Interesting:

Written by Tony on February 11th, 2009 with no comments.
Read more articles on Windows Networking.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .