Hi DrillSergeant!Hmm... I didn't get this one to work! I tried to change the code to:
code:
$WorkDir="C:\datetest\workdir"
;* These are the directories that need to be cleaned up.
DIM $RemoveDir[1]
$RemoveDir[0]="C:\datetest\dir_n1"
$RemoveDir[1]="C:\datetest\dir_n2"
; * Delete files if they are older than the current date minus these days.
$days=90
I get the following error:
"Script error: array out of bounds!.
$RemoveDir[1]="C:\datetest\dir_n2"
if I set:
DIM $RemoveDir[2]
The correct files get deleted, and logs are created, but I still get a KIX Script error:
while $removedir[$dirnr] > ""
..and one other thing; why all the math?
It makes it so much more complicated to follow? Ok ok, it's probably more right this way 
Again, thanks for answering!
[This message has been edited by masken (edited 08 January 2001).]
[This message has been edited by masken (edited 09 January 2001).]