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.

Kees

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.
Bob

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

...to 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.

IPCONFIG /RELEASE_ALL
SHUTDOWN

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?
Bob

Collapse -
Wow....
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 -
Sadly.
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.
Bob

Popular Forums
icon
Computer Help 51,912 discussions
icon
Computer Newbies 10,498 discussions
icon
Laptops 20,411 discussions
icon
Security 30,882 discussions
icon
TVs & Home Theaters 21,253 discussions
icon
Windows 10 1,672 discussions
icon
Phones 16,494 discussions
icon
Windows 7 7,855 discussions
icon
Networking & Wireless 15,504 discussions

REVIEW

Meet the drop-resistant Moto Z2 Force

The Moto Z2 Force is really thin, with a fast processor and great battery life. It can survive drops without shattering.