Thanks for the suggestion. If I try this it simply adds all the files to the zip file for the date fields present. I know I've got some variables in strings...just experimenting.

Code:

For $year=2004 to 2006
 For $month=1 to 12
  For $day=1 to 31
   $file=Dir("c:\admin1\*.*.*.*."+$year+Right("0"+$month,2)+Right("0"+$day,2)+".*.*")
   $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 ?
	Shell "%comspec% /c 7z.exe u -tzip c:\admin2\RPT$year$month$day c:\admin1\$f"
    Next
   EndIf
  Next
 Next
Next


Edited by brewdude6 (2006-12-05 05:44 AM)
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain