JRI_Work Posted May 10, 2010 Share Posted May 10, 2010 I have a site that builds a new temp txt file in a dedicated folder each time a user logs in. This file tracks various things about the user's activity. Each user's file is updated every time they go to a web page within the site.Each time a person goes to a web page within the site, I need to run some ASP script to loop through the folder containing the txt files, and for each one that has not been modified in the past 30 minutes, then it should delete the txt file(s).This is a low volume web site, so this logic should not be a problem.How do I write the logic to loop through the folder and test for older than 30 minutes? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 10, 2010 Share Posted May 10, 2010 Look into the filesystemobject, you can use that to do things like get the contents of a directory, and each file object should give access to the properties for that file, such as last modified date. Link to comment Share on other sites More sharing options...
JRI_Work Posted May 11, 2010 Author Share Posted May 11, 2010 Thanks!That got me pointed in the right direction. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.