faqts : Computers : Programming : Languages : Asp : ASP/VBScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes


Is it possible to invoke an .asp file when the time is 12.00 A.M?

Nov 2nd, 2005 08:54
Jason Benson, Murugesan .R, http://www.asp101.com/articles/john/schedule/default.asp

The short answer is yes you can!
There are lots of ways.
Depending on how your server is setup you may have Task Scheduler (MS 
compenent) or have other software installed.  (I recommend pycron to 
mimic cron behaviour as it's just easy to those used to *nix cron)
For an easy solution (but not the best) you could run "explorer 
http://www.example.com/yourpage.asp" within task scheduler.  The issue 
with that though is that it will open up an MSIE window with your url 
in it.  To some this isn't a big deal (home hosting people etc).
If you want to get rid of the little window you could use the win32 
version of Lynx and a batch file.
Neither method is secure in the slightest (your URL is available from 
the internet and is not protected).
For some other ways (most better than this very simple way) check out 
the reference link posted with this answer. 
Hope that helps

© 1999-2004 Synop Pty Ltd