So, really, we need to put the files in date/time order, from first to last, and look at the last 5 files? If there are less than 5 zero size files among these, do nothing. If there are 5 (all of the last 5 files are zero size), delete all zero size files, add 1 to counter, and reboot? Repeat until counter = 3, then send email? This is not so hard and I know a way with VBS that is simple.