code:
  Dim $tempfolders[2]

$fileage=31
$filter='*.*'

$tempfolders[0]=expandenvironmentvars('%%TEMP%%')
$tempfolders[1]=expandenvironmentvars('%%WINDIR%%')+'\temp'
if $tempfolders[0]<>'c:\temp'
$tempfolders[2]='c:\temp'
endif

$rc=cleandirectory($tempfolders,$filter,$fileage)

_________________________
There are two types of vessels, submarines and targets.