I am looking for a way to run the script every day at 5am to delete the contents of the Temp folder. The following is the method that I am considering. I would appreciate any thoughts on this or suggestions on other methods. I want to save everything locally, so that external accounts will not be outside of my ASP hosting account at a discount.
- Enter a text file containing the date and time of the next required launch (tomorrow 5:00).
- Specify the value of the Datetime cache expiring after (one hour?)
- When someone gets to the website and the cache expired, reload the datetime into the cache
- If Datetime has passed, run the script as "scheduled" and add 24 hours in DateTime to the file
Your comments are appreciated.
source
share