Programatically Clearing Cache, History, Cookies, Data in IE 7,8,9
A lot many times it becomes imperative for users to clear browser cache, history and other data. Here are the contents of a windows batch file which eases some pain doing that drudgery in Internet Explorer version 7, 8 and 9.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | @ECHO off :SelectOptions CLS ECHO Howdy %username% : ECHO 1. Delete Non-trusted web History(low level hidden clean up) ECHO 2. Delete History ECHO 3. Delete Cookies ECHO 4. Delete Temporary Internet Files ECHO 5. Delete Form Data ECHO 6. Delete Stored Passwords ECHO 7. Delete All ECHO 8. Delete All "Also delete files and settings stored by add-ons" ECHO 9. EXIT :ExecSelectedOption ECHO Hit a number [1-9] and press enter. SET /P CHOICE=[1-9] IF "%CHOICE%"=="1" SET x=del /s /q C:\Users\%username%\AppData\Local\Microsoft\Windows\History\low\* /ah IF "%CHOICE%"=="2" SET x=RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 IF "%CHOICE%"=="3" SET x=RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 IF "%CHOICE%"=="4" SET x=RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 IF "%CHOICE%"=="5" SET x=RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 IF "%CHOICE%"=="6" SET x=RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32 IF "%CHOICE%"=="7" SET x=RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255 IF "%CHOICE%"=="8" SET x=RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351 IF "%CHOICE%"=="9" GOTO quit %x% GOTO SelectOptions |
icewolf
thanks for this.. this is really useful
dani
awesome, i did’nt test it yet, but thanks for sharing it with us
sam
thanks .. this is really useful but I want auto Fill Password and auto logging password Clear Script All so can Some one Help me ….