here is some code, using FSO to return a files creation date, and then compairing the age of that date vs the current date and time.

i ma using the UDF's FlipCTime() and TimeConvert()

Code:

$f = 'logfile.log'
$f = CreateObject("Scripting.FileSystemObject").GetFile($f)

$date = Split($f.DateCreated)[0]
$date = Split($date,"/")
$date = $date[2]+"/"+$date[0]+"/"+$date[1]

$time = timeconvert(Split($f.DateCreated)[1] +" "+ Split($f.DateCreated)[2])

$72h = 259200

If flipctime(@DATE,@TIME) - flipctime($date,$time) > $72h
? 'the file ' + $f.name + ' was created 72+ hours ago'
EndIf



Bryce