Solved

ipconfig /release /renew batch file won't run

Posted on 2004-08-20
6
2,306 Views
Last Modified: 2012-05-05

Sometimes at my house my wife's (XP home) computer loses conectivity to the internet. If I manually ipconfig /release and ipconfig /renew the problem is solved and internet is again available. My problem is I can' t get it to run in a batch file.

Here is the file I'm running

ipconfig /release
ipconfig /renew

Seems pretty straight forward but when I execute it the first line scrolls by the cmd window over and over. ie:

C:\>ipconfig /release
C:\>ipconfig /release
C:\>ipconfig /release
C:\>ipconfig /release

And it keeps scrolling to infinity.
I've tried putting pause on the second line but it just keeps scrolling.

Any ideas? My goal it to release and renew the ip with just a double click for my wife.

Thanks
Yohaheho



 
0
Comment
Question by:Yohaheho
  • 3
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
For-Soft earned 500 total points
ID: 11850830
Are you using ipconfig.bat to do the job? If yes than change the file name.
0
 

Author Comment

by:Yohaheho
ID: 11851682
For-Soft,

Damn! Good one. That was the problem. As soon as I read it it dawned on me.

Thanks
Yohaheho
0
 

Expert Comment

by:Robert
ID: 13193369
Came searching for IPCONFIG solutions today - my XP seems to not show the path anymore for system32.  

Curious about your solution - why would ipconfig.bat not work?

ub
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 10

Expert Comment

by:For-Soft
ID: 13193844
Every time IPCONFIG command was run inside the IPCONFIG.BAT. IPCONFIG.BAT was run instead of IPCONFIG.EXE.
So batch entered a loop running itself again and again...
0
 

Expert Comment

by:Robert
ID: 13210214
And the order of execution is based on the path statement?  or do .bats get "queued" ahead of .exes?
0
 
LVL 10

Expert Comment

by:For-Soft
ID: 13211684
Current directory is always the first to look in for files. The path statement is interpreted after current directory search.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now