473,566 Members | 2,770 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 21 '05 #1
3 2249
I have no idea what a aspx.net file is but I asume you mean *.aspx file...
does'nt really matter, you want to run a file.

You can create a Windows Forms application that runs in the background. The
easiest way to do this (with my knowledges) is I guess to hide the Form ..
but I'm sure there are better ways in terms on program design though.. I
mean trying to have things as a tray thing or stuff like that.

Anyways....

You can use a Timer Control and if you set the Interval to be 10 seconds and
then in the Timer_Tick event you call the file. I have'nt called an external
file in VB:NET yet but in VB6 it was "Call Shell [path to file]"

Best regards/
Lars
"Steve Jacobs" <st********@yah oo.com> wrote in message
news:y-*************** *****@comcast.c om...
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 21 '05 #2
Lars,

Dim p As New Process
Dim pi As New ProcessStartInf o
pi.FileName = "http://msdn.microsoft. com"
p.StartInfo = pi
p.Start(pi)

However do you see the fun when that starts every 10 seconds.

Cor
Nov 21 '05 #3
Create a Windows Service

http://www.dotnetjunkies.com/Tutoria...148AF384D.dcik

Greg
"Steve Jacobs" <st********@yah oo.com> wrote in message
news:y-*************** *****@comcast.c om...
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 21 '05 #4

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

Similar topics

13
2492
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 close it consumes a lot of CPU time. is there a better solution? Greetings Daniel --
11
3740
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 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET...
0
968
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 2sec) Other thread reading every 5 seconds (open, StreamReader.ReadLines while Length > position, close) However while the read thread is actually...
5
1358
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 file. I could make a routine that checks for new files every so many seconds, but that uses too much of the machines resources. Any ideas?
10
3335
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 on... This one comes up quickly, then my IE says Ready... and waits for about 2 seconds, then, it starts to load the aspx file... How come there...
1
2912
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 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...
4
1272
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? Why can't IIS just assume that if there are aspx pages, then it's a .net application? -Darrel
7
2286
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 files on harddisk there's a node into n- tree, this solution is not good for large hard disk.. and i can't use inotify (it's forbidden), and only c...
4
2244
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 size = 1 session = W_MAIN QuoteBlockTiming exceeded 1000 ms: 1640 --- Fri Nov 06 06:09:18 CST 2009 170.137.94.2 Class key = 649126749 block size = 1...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8108
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...
0
7951
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...
0
6260
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...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
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
0
925
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...

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.