General discussion

Locked

IPCONFIG batch file

By MyHTC ·
I often lose my connection to the Internet through my Linksys Router. I can get it back quickly by going to a command prompt and typing "IPCONFIG/RELEASE", waiting until the release(about 5 seconds). And then "IPCONFIG/RENEW".
My question is - is there a short program I can write or that may already exsist the will do this for me from an Icon on my desk top?
I use Win XP
Thanks for any help

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

IPCONFIG batch file

by TimTheToolMan In reply to IPCONFIG batch file

Hi,

Yep, You can create a .bat file and stick it on the desktop to do this. The trick is that there is no native "sleep" command in DOS.

You can download a "wait" utility to do this from...

http://www.simtel.net/pub/pd/40696.html

(removespaces from above URL)

...and so your .bat file would simply be

IPCONFIG/RELEASE
wait 5
IPCONFIG/RENEW

But thae whole thing doesn't sound right... I'd be making a call to your ISP to find out what your lease time is set to and getting them to help you troubleshoot why your lease isn't automatically being renewed.

That should automatically happen after 1/2 the lease time has expired.

Cheers,
Tim.

Collapse -

IPCONFIG batch file

by MyHTC In reply to IPCONFIG batch file

The question was auto-closed by TechRepublic

Collapse -

IPCONFIG batch file

by Joseph Moore In reply to IPCONFIG batch file

I agree that making a BAT file is the way to go, but you really don't need any pause between the /RELEASE line and the /RENEW line. So, you could just say in the BAT file:
IPCONFIG /RELEASE
IPCONFIG /RENEW

The second line should not run until the first line is done. BAT files don't multi-process; it is one line at a time. So, put those two lines in an empty text file (use Notepad) and save it "ipreconfigure.bat"
Use the quotation marks to not append a .TXT to the file.

Collapse -

IPCONFIG batch file

by MyHTC In reply to IPCONFIG batch file

The question was auto-closed by TechRepublic

Collapse -

IPCONFIG batch file

by MyHTC In reply to IPCONFIG batch file

This question was auto closed due to inactivity

Back to Desktop Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums