Tuesday 10 June 2014

Clearing Internet History, DNS cache and Temporary files using Batch Programming

Clear internet History, DNS cache and windows temporary files by creating .bat File...

1. Open notepad and copy the following code:

@ECHO OFF
Echo Clearing Temporary Internet Files and History ...
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
Echo Temporary Internet Files and History Deleted Successfully!
Echo.
Echo Clearing Temporary File ...
rmdir %temp% /s /q
rmdir c:\windows\temp /s /q
rmdir c:\windows\prefetch\*.* /s /q
Echo.
Echo Clearing DNS cache ...
ipconfig /flushdns
Echo.
Echo Press any key to continue . . .
PAUSE > NUL
EXIT


2. Now save this file as cleaner.bat and select Save as Type: All Files
3. Now execute the cleaner.bat



No comments:

Post a Comment

Feel Free to Share issues with me....