Solved

ipconfig /release /renew batch file won't run

Posted on 2004-08-20
6
2,340 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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