|The stupid question is the question not asked|
Uncovering hidden Internet Explorer cacheby ryddler (Monk)
|on Jan 03, 2001 at 22:53 UTC||Need Help??|
After emptying the IE cache one day, I decided to check the properties of the "Temporary Internet Files" directory to see how many bytes were being used and was curious to find nearly 100 megabytes of files and folders were still being held captive. As many of you (Windoze users) may know, there are certain directories that the OS tries to hide from the user, and in most cases that's probably a really good thing, because I know if my grandfather had access to some of them, I'd be on call a lot more often to fix his machine ;)
Further exploration using a dos window reveals a curious hidden file named "desktop.ini" containing the following lines:
Which presumably tell the OS what to display in the GUI. This file is then also located within several subdirectories containing all the cache files below this level.
After manually removing the "desktop.ini" I discovered that it was immediately put back into place the next time I ran Internet Explorer, so obviously this meant any time I wanted to clear out the cache thoroughly, I would need to manually remove "desktop.ini" from each subfolder I wished to view... Enter perl, and the simple one-liner below will recurse through and delete the "desktop.ini" allowing me to view everything. (why hide it?)
NOTE: NT users will need to change the path to reflect their profile...