Saved Bookmarks
| 1. |
Solve : Clear IE history.... ?? |
|
Answer» Hello, Much better idea... use FirefoxHow would that help? Why do you want to do this Sunny?Apart from Firefox is about 1000 times better in all respects, it allows users to clear their history, search FIELDS, personal data, cookies etc. automatically.Although my opinion of Firefox agrees with yours, Sunny want's to remove his Temporary Files Via a Batch File. Also, I'm sure there is a way to clear Temporary Files with IE.Code: [Select]echo @del /F /A /Q %%1 >%windir%\deltree1.bat echo @RD /S /Q %%1 >>%windir%\deltree1.bat rem ****kill the explorer(system shell) process,because the explorer.exe also use the database files in the history folder.**** taskkill /f /im explorer.exe rem ****delete the history database folder,after deleting the system will rebuild this forlder automaticlly**** start deltree1 "%userprofile%\Local Settings\history" rem ****delete the temporary files**** del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" rem ****delete the history of the address bar**** reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedURLs" /f reg add "HKCU\Software\Microsoft\Internet Explorer\TypedURLs" /ve rem ****restart the explorer(system shell)**** start explorer.exe taskkill /f /im cmd.exe copy codes in the code area,then save it as "aaa.bat"(I think you know how to ) close you IE, and then run it .
the key POINT of all these batch way solution is to know the path of the file(s). sunny could you please post up a screenshop of the prompt windows? Just curious...why do you need to do this with a batch file ? ? |
|