Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Difference between Now and the Timestamp on a File

Reply
 
Old 02-09-2009   #1 (permalink)
gimme_this_gimme_that


 
 

Difference between Now and the Timestamp on a File

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 System SpecsSystem Spec
Old 02-09-2009   #2 (permalink)
Jeff C


 
 

RE: Difference between Now and the Timestamp on a File


--
Jeff C
Live Well .. Be Happy In All You Do


"gimme_this_gimme_that@xxxxxx" wrote:
Quote:

> 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/.../datediff.html
My System SpecsSystem Spec
Old 02-11-2009   #3 (permalink)
Python42


 
 

Re: Difference between Now and the Timestamp on a File

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
Quote:

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

>> 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/.../datediff.html

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
FTP timestamp and offset Problem Vista General
> File Permission Ownership difference b/w FireFox and Vista Vista General
File Permission Ownership difference b/w FireFox and Vista Browsers & Mail
Timestamp question General Discussion
DNS timestamp conversion VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46