Thanks for helping Bryce, when the directory is empty, it says:

Number of files older then 1 day = 0
Total size of files to be deleted =

When I place some temp files in de TEMP dir, it says:

ERROR : array reference out of bounds!
Script: C:\Documents and Settings\mzi\Bureaublad\KIX\testomgeving\monitorentempfiles.kix
Line : 19

?