473,791 Members | 2,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ApplicationOnst art event? Would it be safe to
do?

--
Thanks

Grant Ord
Jul 22 '05 #1
3 6134
Try http://www.webcron.org/index.php?&lang=en

Patrice

--

"Grant Ord" <gr*******@nosp am.nospam> a écrit dans le message de
news:8B******** *************** ***********@mic rosoft.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 ApplicationOnst art event? Would it be safe to do?

--
Thanks

Grant Ord

Jul 22 '05 #2
Gazing into my crystal ball I observed =?Utf-8?B?R3JhbnQgT3J k?=
<gr*******@nosp am.nospam> writing in
news:8B******** *************** ***********@mic rosoft.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 ApplicationOnst art 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.publi c.inetserver.as p.general:
Can something be set up in the ApplicationOnst art 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("M SXML2.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
3059
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 functions defined which know how to read the hardware sensorts. I access it from wherever I am via any browser, and it displays the measurements (a set of simple numbers) as Java applets in a simple html page. One entry in this page (a table cell) looks...
7
40209
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 so. It should be possible, Right? I don't know much about JavaScript. Thanks for the help.
5
3659
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 these menus are then placed into the page by calling Server.Execute(rs_Modules("ModulePath")). This works fine for up to 15 "menus" After that, the session variables that were set (not including those called by Global.ASA) are no longer set. ...
16
4229
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 shelled out on VC++ 6.0 compiling that same code is proving difficult. I am not too worried how I generate random numbers in c++, as long as it is sufficiently random. Can anybody help me out in getting what I want from VC++?
6
18674
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 and will convert between date/time and double automatically. The double value Access (or VB) creates is based on 1 day = 1.0 and the fractional part represents a
143
8111
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 included for the sine function. but which .c file implements the sine/cosine and other trig fns thanks
10
1577
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 Shane
7
2623
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 process but the process should scale to 100 or even 1000 loops. If the functions contained within the loop, some of which go out to web services, take an indeterminate amount of time, how do I design my windows service so that if the code takes...
1
6025
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 browser back button, it loads the progress bar again. Any solution to this?
0
10426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.