473,511 Members | 14,981 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need to run a vb.net or aspx.net file every 10 seconds.

Hi,

I need to run a vb.net or aspx.net file every 10 seconds. The Task Scheduler
in Windows 2003 Server can only do it every 1 minute at the minimum, but I
need it every 10 seconds. Is it possible to write a small program in VB.NET
that would run in the background without using much resources, and request a
vb.net or aspx file every 10 seconds? Could you show me how to write such
code? or give me good directions?

Thank you.
Steve.
Nov 23 '05 #1
1 2904
Hi Steve:

What you need is a Windows service (its like a Unix deamon process). In the
Windows services you could use the System.Threading.Timer class to execute a
method every 10 seconds.

To write a Windows service:
http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/
To learn how to use the System.Threading.Timer class:
http://msdn.microsoft.com/library/de...ClassTopic.asp

Hope this helps,
Mujtaba.

"Steve Jacobs" <st********@yahoo.com> wrote in message
news:OK********************@comcast.com...
Hi,

I need to run a vb.net or aspx.net file every 10 seconds. The Task
Scheduler
in Windows 2003 Server can only do it every 1 minute at the minimum, but I
need it every 10 seconds. Is it possible to write a small program in
VB.NET
that would run in the background without using much resources, and request
a
vb.net or aspx file every 10 seconds? Could you show me how to write such
code? or give me good directions?

Thank you.
Steve.

Nov 23 '05 #2

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

Similar topics

13
2478
by: Daniel Mueller | last post by:
Hello Fellow Python Programmers, I have the following problem: i want to read the content of a file every 10 seconds. now what is the best funktion to do that? to open the file, read it and...
11
3733
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
0
966
by: Philip K | last post by:
Using C#, XP and 2 threads in a single App. Using filestream to open file with shared read. I have one thread writing data every 2 seconds (open, StreamWriter.WriteLine, flush, close, sleep...
5
1354
by: hourlie | last post by:
I wrote a simple Web Service. It Consumes a single String, writes it to a text file on the hard drive, and returns a success. Now I need a trigger that will start the program that processes the...
2
2353
by: Glen | last post by:
As I understand it, when the first page of an application is accessed, all ASPX/ASCX/etc. files in the same folder are compiled using the JIT compiler. Is there a way to turn this feature off? ...
10
3323
by: Kristoffer Arfvidson | last post by:
In my server I notice a small delay of about 2 seconds before it starts processing aspx documents... Because I have first off an standard asp page, witch contains the frameset and title and so...
3
2239
by: Steve Jacobs | last post by:
Hi, I need to run a vb.net or aspx.net file every 10 seconds. The Task Scheduler in Windows 2003 Server can only do it every 1 minute at the minimum, but I need it every 10 seconds. Is it...
4
1267
by: darrel | last post by:
To deploy a .net web application, one needs to go into IIS and make sure the folder that contains the application is set to be an application folder. Can anyone explain why we need to do this?...
7
2276
by: elgiei | last post by:
Good morning at all, i have to implement a server,that every n-seconds (eg. 10sec) sends to other clients,which files and directory has been deleted or modified. i build a n-tree, for each...
4
2241
by: ndedhia1 | last post by:
I am reading in a file to see what delays I am getting on what IP address: QuoteBlockTiming exceeded 1000 ms: 1684 --- Fri Nov 06 06:09:10 CST 2009 170.137.94.95 Class key = 649126730 block...
0
7237
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
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
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
7417
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...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
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 ...
0
445
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...

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.