Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Deleting Temporary Internet Files/Clearing IE Cache

Keywords: 	 Deleting temporary Internet Files\Content.IE5  Temporary Internet Files  clearing IE cache

Question:

I seem to be stumped on how to clear IE's Cache using Winbatch. I know I can open up the control panel and use sendkeys and such, but I'd rather have it just have the cache deleted using script commands. The following files:
C:\WINDOWS\Local Settings\Temporary Internet Files\Content.IE5\.......

and many more images and webpages are stored in the folder

C:\WINDOWS\Local Settings\Temporary Internet Files\Content.IE5\BYD9JT3V(KJG921C1 
or W0D2RKEP or 1YVN2U0X or index.dat,

but none of these folders are displayed. Why?

Can I modify the registry or use any other way to make these folders visible in

c:\windows\local settings\temporary internet files?
Please help!

Answer:

Actually the "Temporary Internet Files" is a tricky directory to do correctly. The main problem is that what you see in Windows Explorer and what is really on disk is quite different. When you are in Windows and use Windows Explorer to get into the Temporary Internet files directory, Windows does not display the "real" directory structure, but instead gives you some kind of "sanitized" version.

This can be maddening to those who like to really see the hard drive and access those files.

If you use the ShellOperations extender, you can use it to both locate the Temporary Internet Files directory, and then, with the aFileDelete function, delete it or just its contents. I think aFileDelete should do it, but for testing get rid of aShellFolders and try various permutions of the src line. Maybe without the \*.* for instance.

Alternatively, if you are particularly skilled with the DOS DIR command and can use the various switches involved, you can get a listing of the files.


Article ID:   W14865