I've never found a simple answer to this yet it must be an issue for a lot of
web applications.
Basically I want to execute code in a web application at a specific time
and/or intervals (like daily at 2:00 AM).
I want this to happen regardles of whether a user is accessing the
application.
Some years ago I solved a particular instance of this issue by setting up a
Scheduled Task. The task used a command line to launch IE without an
interface and passed the URL of an ASP page as a parameter. The ASP page
contained the code I wanted to run, which ran, and then IE was closed. I
don't remember whether the ASP closed IE or the Scheduled Task did. A bit
crude I suppose but it worked just fine.
Trouble is I've lost the command I Scheduled and I can't remember the
syntax. I've tried to find IE command line syntax again but with no success.
If anyone knows what that syntax would be then I'd be grateful. I've done
numerous earches for IE comand line syntax but not turned up anything useful
- where on earth is it?
More generally is there a better way to achieve the objective? Some of my
applications are hosted by ISPs rather than being intranet based. Scheduled
Tasks aren't an option there.
Can something be set up in the ApplicationOnstart event? Would it be safe to
do?
--
Thanks
Grant Ord