Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for TimeStamp on a file

Status
Not open for further replies.

lytus

MIS
Jun 17, 2004
48
US
Hi all,
I am looking for an easy way to make sure a file has been updated in the last 10 minutes. Is there an easy way to do this without a lot of time manipulation in vbscript?

Thanks.
 
I don't know what you mean by a lot of time manipulation. You would do the same thing as you would do in any other language:

1) Get the date last modified of the file
2) Subtract the date last modified from now
3) See if the difference is greater than 10 minutes

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top