PDA

View Full Version : Running an ASP page as a scheduled task


Spudhead
10-02-2002, 02:56 PM
I have a page of ASP code, that collates a list of the day's posts on a site forum and can send them to a list of users.

I want to make this page run automatically. Once a day. Without me having to fire up the browser and actually "visit" it. But I want to retain the ability to "visit" the page, should I ever get bored and feel like pinging off random spam.

All I see is that I'll somehow need to involve Task Scheduler in this. But what do I point it at? It doesn't look like I can point it at an .asp file - only an .exe or similar. So what? IE? But that doesn't parse ASP files, even if I knew of a way to start it up and load a particular file. IIS? Where's the exe for IIS? Is that something anyone should know? Should I really be messing with IIS to run an .asp file?

I think I'm barking up the wrong tree here. Can anyone offer advice?

Alekz
10-02-2002, 03:15 PM
Windows Scripting Host? It would be an easy task to convert ASP to VBS for WSH...

Alex

scroots
10-02-2002, 09:43 PM
point it to IE and add something after it, i can`t remember what it is, but you can point a shortcut to any program and file so it loads the program with that file.

scroots

whammy
10-03-2002, 12:51 AM
Im' with Alex - just convert it to a .vbs file :)

Spudhead
10-03-2002, 01:05 PM
Mmm, yeah WSH would have been one way. In the end I just pointed Task Scheduler at a html file that redirected to the asp file in question. Seems to work :) Cheers all...

whammy
10-04-2002, 02:28 AM
hey... whatever works is good. :D