udf = user defined function (KiX 2001, yes)

I would recommend to use Shawn's code (3rd reply) only with a modification:

instead of:

?"$filename older than $daysold days..."

do :

del $filename

Only thing left then is to decide what are the exceptions...

J.

_________________________