Windows Vista Forums

Difference between Now and the Timestamp on a File

  1. #1


    gimme_this_gimme_that Guest

    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

  2. #2


    Jeff C Guest

    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:

    > 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

  3. #3


    Python42 Guest

    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

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


      My System SpecsSystem Spec

Difference between Now and the Timestamp on a File

Similar Threads
Thread Forum
FTP timestamp issue
This was discussed in a previous (closed) thread, but i can't see that it was resolved. I routinely use an ftp server located on the east coast...
Network & Sharing
Using VBScript to apply TimeStamp to DNS A records...
Hi! I wrote a few VBScript to report stale and no TimeStamp DNS records reports, and now with those reports, I need to update DNS records. The...
VB Script
FTP timestamp and offset Problem
I'm trying to resolve an issue with FTP folders displaying the wrong timestamp on newly created folders/files on the FTP server. It displays an...
Vista General
> File Permission Ownership difference b/w FireFox and Vista
Greetings, I have a network share setup b/w a Vista Ultimate x32 and XP machines. Using the XP machine, I open the Vista hosted share but...
Vista General
File Permission Ownership difference b/w FireFox and Vista
Greetings, I have a network share setup b/w a Vista Ultimate x32 and XP machines. Using the XP machine, I open the Vista hosted share but found...
Browsers & Mail
Timestamp question
Hi, I shipped a USB hard drive to a customer that has a WAV and WMA file on it. I had timestamped the WAV and WMA file with the same date/time,...
General Discussion
DNS timestamp conversion
I have a script that writes all the A record information from a DNS server to a CSV file. It reports the time stamp used for scavenging in the NT...
VB Script