• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Difference between Now and the Timestamp on a File

  • Thread starter gimme_this_gimme_that
  • Start date
G

gimme_this_gimme_that

#1
If someone could provide a few tips on computing the difference
between now and the timestamp on a file that's be great.

I'm writing a VBScript that sends an email if a file is older than
hour old.

Thanks.
 

My Computer

P

Python42

#3
filename = "whatever"
diffInMinutes = datediff("N",fso.GetFile(filename).DateLastModified,Now)

returns the time in minutes between Now and the last file modification.

"Jeff C" <JeffC@xxxxxx> wrote in message
news:56875826-203F-4582-ADB1-D674283B8A00@xxxxxx

>
> --
> Jeff C
> Live Well .. Be Happy In All You Do
>
>
> "gimme_this_gimme_that@xxxxxx" wrote:
>

>> If someone could provide a few tips on computing the difference
>> between now and the timestamp on a file that's be great.
>>
>> I'm writing a VBScript that sends an email if a file is older than
>> hour old.
>>
>> Thanks.
>>
>
> Review DateDiff:
>
> http://www.devguru.com/Technologies/vbscript/QuickRef/datediff.html
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)