hmm...
think you could go the other way.

Code:
for $year=2004 to 2006
 for $month=1 to 12
  for $day=1 to 31
   $file=dir("folder\RPT*.ALL."+$year+right("0"+$month,2)+right("0"+$day,2)+".*.CSV")
   $files=""
   while $file and @error=0
    $files=$files+"\"+$file
    $file=dir()
   loop
   if 2<len($files)
    ? "make zip for " $year " " $month " " $day " consisting off:" ?
    for each $f in split($files,"\")
     "  " $f ?
    next
   endif
  next
 next
next


or something similar...
_________________________
!

download KiXnet