By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 1,373 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.