mholocher
asked on
running a timed asp page
I am trying to build an ASP page that runs every so often (say hourly or once a day) that pulls pertinent information from a database and generates an email with that information. I can't seem to find what I am looking for. It looks like I can use the Windows Scripting Host but I don't want browser windows opening if possible. I'm not real sure where to start.
Can anyone help?
Thanks,
Matt
Can anyone help?
Thanks,
Matt
I would create a VB app that ran my query and sent the email instead of an ASP page. Then set that vb app up as a service in NT.
"Automating Tasks with WSH"
http://www.4guysfromrolla.com/webtech/101399-1.shtml
http://www.4guysfromrolla.com/webtech/101399-1.shtml
ASKER
I've have already read the 4Guys from Rolla information and it really wasn't what I was looking for.
As far as the VB app, what if I didn't have access to the actual server. Say it was hosted at some hosting company somewhere. Isn't there some other way to do it?
As far as the VB app, what if I didn't have access to the actual server. Say it was hosted at some hosting company somewhere. Isn't there some other way to do it?
Not what youre looking for b/c you dont have access to the server? Then you will be limited...there are some shady workarounds like this:
http://www.powerasp.com/content/hintstips/schedule-global.asp
http://www.powerasp.com/content/hintstips/schedule-global.asp
You can use the Javascript 'setTimeOut()' function to run a page every so often;
<body onLoad="setTimeout('reDoPa ge()',6000 00)">
function reDoPage() {
window.location.reload(tru e);
}
<body onLoad="setTimeout('reDoPa
function reDoPage() {
window.location.reload(tru
}
easy, simply have an asp page on the server that does the task then write a simple app that requests a web page using HTTP (set it request the web page that does you job). run this app on a machine you have control over. to schedule the local app us either the win98 scheduler or AT command on NT
if you only have a PC at home and dont want to be dialed up all the time then your program will have to do the following
Dialup using the RAS API
request the page
Drop the connection
you could do all of this in C++ or WSH with the appropriate components
Dialup using the RAS API
request the page
Drop the connection
you could do all of this in C++ or WSH with the appropriate components
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I decreased the point total because in one of my comments I stated that I didn't have control over the machine where the site is hosted. I am giving the points based on the effort that was given to answer the question.