Quote:

And it is the cleandirectory() udf but it does not work for me because I could have certain files on all folders with dates older and would be deleted.





No, it is not...

I meant DateTimeDiff(), DateCalc(), DateTimeMath(),DateMath(), SerialDate(), etc
_________________________
Co