Original poster says:

I need help on how to delete files from a particular directory which are older than 24 hours.
Here is a little script. I will assume folder is C:\folder. When you say 'older' than a certain time, I will assume you mean created before that certain time. I will assume that time is 20090522000000 (May 22, 2009, 00:00:00).

Code:
# Collect a list of files created before 20090522000000.
var str list ; find -rn "*" "C:\folder" ( 9$ftype=="f") AND ($fctime < "20090522000000") )
# Delete files in list one by one.
while ($list <> "")
do
    var str file ; lex "1" $list > $file ; system delete ("\""+$file+"\"")
done

Script is in biterscripting (http://www.biterscripting.com/install.html). Translate it to any batch or scripting langugage of your choice.

Patrick