Windows Legacy OS forum

General discussion

Flushing DNS and releasing the IP question

by b8375629 / August 20, 2009 7:30 PM PDT

I was wondering if there was a script out there where I can automate the ipconfig /flushdns and then /release the IP commands when I shutdown my system.

Anybody know where to look? Thanks.

Discussion is locked
You are posting a reply to: Flushing DNS and releasing the IP question
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Flushing DNS and releasing the IP question
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: automatic
by Kees Bakker / August 20, 2009 7:55 PM PDT

Make a batchfile with the necessary commands. That's IPCONFIG with the right parameters, followed by a RUNDLL32 for a programmatic shutdown. Then add a shortcut to that batchfile somewhere (Start>Programs, Desktop, Quick Launch, whatever you prefer) and use that.

It won't work for a shutdown via ALT-F4 or when done by Windows itself, for example if you answer "restart now" to a Windows update prompt. It won't even work with Start>Shutdown.
So some user discipline is necessary.


Collapse -
You mean a script can't be added...
by b8375629 / August 23, 2009 11:45 AM PDT
In reply to: Re: automatic

...the the shutdown process? When I go to Start - Turn Off Computer - Turn Off and a script runs doing this as part of the shutdown process?

Collapse -
I'm going to write no.
by R. Proffitt Forum moderator / August 23, 2009 10:39 PM PDT

I didn't see such a feature in XP. But you could use YOUR script to do all this and shutdown when done.

Collapse -
Where can I go...
by b8375629 / August 24, 2009 2:57 PM PDT
In reply to: I'm going to write no. find out how to do this?

Collapse -
Post 2 (the first reply)
by R. Proffitt Forum moderator / August 24, 2009 10:38 PM PDT
In reply to: Where can I go...

Told you that it would be a batch or script file. YOU create it. YOU own it. YOU make it do what you want.

The skills are not hard to acquire, there is far too many web sites about this so to avoid duplicating the web I'll offer one piece of the puzzle you'll need. The 2 lines you need to tinker with.


Now it's all of 2 lines for you to fix or make work. The SHUTDOWN.EXE is found with google and the IPCONFIG syntax is not hard so why not get it done?

Collapse -
by b8375629 / August 25, 2009 4:06 PM PDT

Jesus, do you really have to be this rude? Go lay off the coffee or something. All I asked was a simple question.

If you don't want to be of any help, then don't bother. Sheesh...


Collapse -
by R. Proffitt Forum moderator / August 26, 2009 1:50 AM PDT
In reply to: Wow....

Handing you the answer is now considered rude. I wish you the best of luck as you are given solutions.

Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?