|
-
Sep 21st, 2007, 08:34 AM
#1
Find most recently modified file
Hi Guys,
I'm looking for a way to find the most recently modified file in a directory using vbscript. Basically I need to find the most recent backup log in a directory and I have found that you can use DateDiff to compare two dates so at the moment im just checking each file in the directory to see if it is less than a day since it has last been modified but then obviously this does not work on a monday...because the backup finishes writing to the log file on Friday so when the script comes to run on Monday there is nothing thats been modified within the last 24 hrs.
Cheers
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|