473,395 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Execute ASP or ASP.Net page or code at specified time interval

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
Jul 22 '05 #1
3 6118
Try http://www.webcron.org/index.php?&lang=en

Patrice

--

"Grant Ord" <gr*******@nospam.nospam> a écrit dans le message de
news:8B**********************************@microsof t.com...
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

Jul 22 '05 #2
Gazing into my crystal ball I observed =?Utf-8?B?R3JhbnQgT3Jk?=
<gr*******@nospam.nospam> writing in
news:8B**********************************@microsof t.com:
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?


1. Get to the desktop
2. Rightclick and choose create shortcut
3. Type in the URL and save it
4. Open up Task Scheduler
5. Browse for the shortcut you put on your desktop
6. Do the scheduling, save it and exit.

This will work for any URL. May not be the best, but it works for me.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #3
Adrienne wrote on 12 mei 2005 in microsoft.public.inetserver.asp.general:
Can something be set up in the ApplicationOnstart event? Would it be
safe to do?


1. Get to the desktop
2. Rightclick and choose create shortcut
3. Type in the URL and save it
4. Open up Task Scheduler
5. Browse for the shortcut you put on your desktop
6. Do the scheduling, save it and exit.

This will work for any URL. May not be the best, but it works for me.

=========== getTheUrl.vbs =========

With CreateObject("MSXML2.XMLHTTP")
.open "GET", "http://www.myOrg.org/blah/myAsp.asp", False
.send
' WScript.Echo .responseText
' un-remark the above if you want to read rendered content
End With

====================================

And schedule this getTheUrl.vbs file
[never tried that, btw]

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Michael Levin | last post by:
I've got the following problem. I'm a biologist and I have a device at work which monitors my frog habitat. The device has a bunch of sensors, and runs an embedded html server with some java...
7
by: Willem | last post by:
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
16
by: Jason | last post by:
Hi, I need a way to use random numbers in c++. In my c++ project, when using the mingw compiler I used a mersenne twister that is publicly available and this did its job well. Now I have...
6
by: Penguin | last post by:
At some long ago time Steve Jorgensen answered thus: Subject: Re: How can I round a time? Newsgroups: comp.databases.ms-access Date: 1998/12/11 Access represents a date internally as a double...
143
by: suri | last post by:
Hello I downloaded glibc and tried looking for the code that implements the sine function i couldnt find the file. i went to the math directory and found math.h.. i guess that needs to be...
10
by: SStory | last post by:
I have an aspx page that is used to control automated tasks. It needs to be visited every day at 1am. The host provider provides no such service at present. I was looking for ideas. Thanks...
7
by: hazz | last post by:
What happens if I set the timer interval for a period that is less than the time it will take to process the loop below? Right now my application is returning just a few items in an arraylist to...
1
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.