Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


find files of certain age ?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,64236
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> find files of certain age ?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 find files of certain age ? - 9/12/2008 2:39:20 AM   
  wsheeUT

 

Posts: 19
Score: 0
Joined: 3/21/2005
From:
Status: offline
How would I go into a directory and look at all the files (in a For Next loop) and match the ones older than 90 seconds since last modified ?
Is wish to _do_ something to files that are older than 90 seconds.
I know about fso.DateLastModified, but am not sure how to eval the 90 seconds old part.

Thanks !
 
 
Post #: 1
 
 RE: find files of certain age ? - 9/12/2008 2:58:04 AM   
  ehvbs

 

Posts: 2201
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi wsheeUT,

use the VBScript Docs (or google) to learn about the DateDiff function.

Good luck!

ehvbs

(in reply to wsheeUT)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> find files of certain age ? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts