@echo off
echo Cleaning %1 files modified in the last %2 days.
echo Finding files to clean...
find %1 -noleaf -name '*.html' -mtime -%2 > #files#.tmp
echo Removing expired IMG tags, if any...
perl expireIMGs.pl < #files#.tmp > clean.out.txt
echo Updating footer dates, if any...
perl updateFooterDates.pl < #files#.tmp >> clean.out.txt
echo Removing expired "What's new" items, if any...
perl expireWhatsNewItems.pl >> clean.out.txt
echo Clean complete. Here's what was done, if anything:
type clean.out.txt
del #files#.tmp