User User name Password  
   
Sunday 24.11.2024 / 12:01
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > software, operating systems and more > windows - general discussion > auto run cmd?
Show topics
 
Forums
Forums
Auto run cmd?
  Jump to:
 
Posted Message
Member
_
16. June 2009 @ 10:30 _ Link to this message    Send private message to this user   
I?m have a little trouble with a dns chche build up on a few work severs I know how to clear this manually but I don't want to be clearing it every morning for the rest of my life. so what I want to do it auto run this command line under task scheld ipconfig /flushdns so it will run at 9 am every morning, now how would I go about this?



C:/DOS C:/DOS/RUN RUN/DOS/RUN

Advertisement
_
__
Senior Member
_
17. June 2009 @ 20:01 _ Link to this message    Send private message to this user   
You need to create a batch file and then use the task scheduler to run the batch file every morning.

Perform the following to create the batch file. Click on start, then select run, then type "notepad.exe". Next type the following.

cd c:\
ipconfig /flushdns

Then select file, save as and save it with a name that you like with the extension ".bat". You'll need to change the file type from .txt to all files. Once you have the batch file created, you can then schedule it to run using the task scheduler in Windows.

Click on Start, then programs, then accessories, then system tools, and finally select Scheduled Tasks. From here you will select Add Scheduled Task, select next, and then click on browse and choose the .bat file that you just created. Next choose the schedule and permissions that you want to use and you're good to go.
Member
_
18. June 2009 @ 02:17 _ Link to this message    Send private message to this user   
i done it now but i had to use the command dnscmd /clearcache as it was for a server i just need to test it thanks anyway.



C:/DOS C:/DOS/RUN RUN/DOS/RUN

Junior Member
_
19. June 2009 @ 10:52 _ Link to this message    Send private message to this user   
Hi Mrcapdown

You can also turn off dns caching...

Click on Start, Run, and type in services.msc. Scroll to DNS Client, and then right click on it, click on Properties, and set Startup Type to Manual.

Of course, you can turn it off in the registry, but this is much easier!

Best Regards :D

Do not mess in my affairs; you are crunchy and taste good with ketchup.
The greatest advantage you can have over someone is to know their name.
Success is relative; the more success the more relatives.
A computer once beat me at chess, but it was no match for me at kickboxing.


∂αякηιgнт
Advertisement
_
__
 
_
Member
_
19. June 2009 @ 11:25 _ Link to this message    Send private message to this user   
hi guys
i figered out away to do it in the end
i made a batch file with the command dnscmd \clearcache and run it with task scheldula at 9am every moring and it seems to works fine

thanx for the help tho



C:/DOS C:/DOS/RUN RUN/DOS/RUN

afterdawn.com > forums > software, operating systems and more > windows - general discussion > auto run cmd?
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2024 by AfterDawn Ltd.

  IDG TechNetwork