|
|
|
|
|
| | |
|
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: How do I Execute an asp script every 4 or 6 hours? |
From: |
Gautam Sharma |
Date: |
3/22/2000 2:59:37 PM |
IP: |
207.247.190.166 |
Setup an application variable called "timeLastRun" in the Application_OnStart event of your global.asa file.
Sub Application_OnStart
application("timeLastRun")=now()
End sub
Then, in the session_onstart event do this:
Sub Session_OnStart
If Datediff("h",now(),application("timeLastRun")) > 4 Then Assuming 4 hr interval
Run Script Here
application("timeLastRun") = now()
End If
End Sub |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|