Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ipconfig /release /renew batch file won't run

Posted on 2004-08-20
6
Medium Priority
?
2,496 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
For-Soft earned 2000 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

722 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