I would like to programatically access certain files in the Temporary Internet Files Directory. I can open the directory, but reading it is very restricted. Is there a way to read the directory contents AND copy or view selected files?
My code:
#!/usr/bin/perl
use strict;
my $tifpath="c:\\documents and settings\\george\\local settings\\temporary internet files\\";
my $filename = "";
opendir(DIR,$tifpath) or die "Cannot opendir $tifpath: $!";
while (defined($filename=readdir(DIR))) {
print "$filename\n";
}
exit;
1
Thanks,
GN
My code:
#!/usr/bin/perl
use strict;
my $tifpath="c:\\documents and settings\\george\\local settings\\temporary internet files\\";
my $filename = "";
opendir(DIR,$tifpath) or die "Cannot opendir $tifpath: $!";
while (defined($filename=readdir(DIR))) {
print "$filename\n";
}
exit;
1
Thanks,
GN