OK, so melding together the discoveries and knowledge of these two hepcats - er, honorable monks - we might have something like this, maybe?

#!perl -w use File::Find; use Win32; use strict; find( \&wanted, "J:/ie5cache/Temporary Internet Files" ); sub wanted { my $replacement = 'InfoTip="This is the IE cache folder"'; if ($_ eq 'desktop.ini') { my $DOSname = Win32::GetShortPathName( "$File::Find::dir/$_" ); my $SRT = system( "ATTRIB -h -s -r $DOSname" ); warn "\nUh-oh, not going to work? -\n$!" if $SRT; print( "Found $File::Find::dir/$_", qq[:\n]); open( IEDF, "$File::Find::dir/$_") or die $!; my @contents = <IEDF>; close( IEDF ) or die $!; if (@contents) { for (@contents) { s@UICLSID\=.+@$replacement\n@i; } open ( IEDF, ">$File::Find::dir/$_") or die $!; print IEDF '',@contents,"\nreplacement made.\n"; print '',@contents; close( IEDF ) or die $!; } } }

There is only a little fruitfly in the ointment. The little line "InfoTip=This is the IE cache folder" does not seem to do anything in my Windows NT4 Explorer interface. Maybe this is (I think so) a Win98-specific innovation?

Good work anyway brothers, I like seeing my cache in ordinary perspective so I have some greater control over the contents.

Intrepid

In reply to Re: (Guildenstern) Re: Uncovering hidden Internet Explorer cache by Intrepid
in thread Uncovering hidden Internet Explorer cache by ryddler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.