Jump to content

Deleting Temp Files Older than 30 Minutes


Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...