I created a small
perl script .. see if it works for you:
Code:
#!C:\Perl\bin\perl.exe
use File::Find;
my @oldFiles;
print "Content-type: text/html\n\n";
find(\&cleanup, "C:\/WINDOWS/Temp/");
sub cleanup {
my $daysOld = ((time - +(stat($_))[9]) / 86400);
if (/\./ && $daysOld >= 1 && $daysOld < 2) {
push(@oldFiles, $File::Find::name);
}
}
print @oldFiles;
If you want to search an entire drive, replace
C:\/WINDOWS/Temp/ with
C:\\
References:
http://techupdate.zdnet.co.uk/story/...122110,00.html
http://techupdate.zdnet.co.uk/i/z/tu...inga110902.htm
http://www.xav.com/perl/lib/Pod/perlfunc.html#item_stat