Solved

ipconfig /release /renew batch file won't run

Posted on 2004-08-20
6
2,311 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

896 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

14 Experts available now in Live!

Get 1:1 Help Now