"Oliver Marshall" wrote:
> That would give logs between yesterday morning and now. So if the check
> happened at 8pm today, it would return anything from yesterday at 00:01 to
> today which is more than 24 hours 
>
> Thanks anyway
>
I tested this:
Set dtmStartDate = CreateObject ("WbemScripting.SWbemDateTime")
DateToCheck = Now
dtmStartDate.SetVarDate DateToCheck - 1, True
WScript.Echo dtmStartDate
It gave me 20070923220056.000000+120 , which is about 24 hours from now (CET).
--
urkec