' Here you would put any code you need to run ' do not surround the code with < % % > tags ' For example you might run a database query that checks for expired accounts
Set ObjMyFile = CreateObject("Scripting.FileSystemObject") Set OpenMyFile = ObjMyFile.OpenTextFile(Server.MapPath("last-update.txt")) MyFileValue = OpenMyFile.ReadLine OpenMyFile.Close
If DateDiff("h",MyFileValue,NOW) > 6 Then
' Here you would put any code you need to run ' do not surround the code with < % % > tags ' For example you might run a database query that checks for expired accounts
Set WriteMyFile = ObjMyFile.CreateTextFile(Server.MapPath("last-update.txt")) WriteMyFile.WriteLine(NOW) WriteMyFile.Close