473,386 Members | 1,867 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,386 software developers and data experts.

Need to write a program that wakes up every 15 minutes and does something

Need to write a program that wakes up every 15 minutes and does something.

I guess I could just create a Windows application and schedule it to run
every 15 minutes.

Or I could have a program always in memory that uses a timer to activate it
every 15 minutes.

1) Any suggestions?

2) Any example code if the way to go it to stay in memory?

3) Is 2 above what is called a service?

Thanks


Nov 20 '05 #1
2 1394
> 1) Any suggestions?

2) Any example code if the way to go it to stay in memory?

3) Is 2 above what is called a service?


1. Create a windows service
2. Check out Windows Service Components in docs.
3. Yes.

Note that strictly speaking a service has no user interface. I assume you
reqiure no user interaction?
Alos note the difference in timers for Windows forms and server timers. Two
different classes that have different benefits/disadvantages. You want
server timers.

The choice of activation method is entirely dependant on what your doing,
how the user is affected/ivloved in the rocess/if there is a user at all. If
there is a user - dont use a windows service.

hth
Richard
Nov 20 '05 #2
I found some documentation and now realize it was not a question that can be
answer in a few sentences. After a little study I think I get it OK. If not
I'll be back.

Thanks for the info below!
"spamfurnace" <bi*******@tastycheeks.com> wrote in message
news:u$****************@TK2MSFTNGP09.phx.gbl...
1) Any suggestions?

2) Any example code if the way to go it to stay in memory?

3) Is 2 above what is called a service?
1. Create a windows service
2. Check out Windows Service Components in docs.
3. Yes.

Note that strictly speaking a service has no user interface. I assume you
reqiure no user interaction?
Alos note the difference in timers for Windows forms and server timers.

Two different classes that have different benefits/disadvantages. You want
server timers.

The choice of activation method is entirely dependant on what your doing,
how the user is affected/ivloved in the rocess/if there is a user at all. If there is a user - dont use a windows service.

hth
Richard

Nov 20 '05 #3

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

Similar topics

2
by: Nathan Simpson | last post by:
Hi, Is it possible and how to run a program on our webserver after a file has been uploaded? This is all server based. We have a requirement that an end user uploads a file to our web server....
1
by: terry | last post by:
I am a programmer (cobol, peoplesoft, sqr, etc.) so I am familiar with programming logic, etc. but not very familiar with C. I need a C program in a study I'm doing. The program is fairly simple,...
9
by: terry | last post by:
I am a programmer (cobol, peoplesoft, sqr, etc.) so I am familiar with programming logic, etc. but not very familiar with C. I need a C program in a study I'm doing. The program is fairly simple,...
5
by: Flack | last post by:
Hey guys, Here is what I am trying to achieve: I have a grid, and every once in a while the grid will receive a message to add a new row and highlight it (change the backcolor) for five...
9
by: laststubborn | last post by:
Dear All, We have a big concern in our Database system. We have 2000 transactions daily in our database. We need to replicate some how the database for our fail over setup. I tried transactional...
22
by: the_grove_man | last post by:
I purchased a book titled "Pro ASP.NET 2.0" to get up to speed on web stuff because I ususally do Windows Form Applications.. But in the first chapters I was reading this week it brought to mind...
0
by: U S Contractors Offering Service A Non-profit | last post by:
Brilliant technology helping those most in need Inbox Reply U S Contractors Offering Service A Non-profit show details 10:37 pm (1 hour ago) Brilliant technology helping those most in need ...
46
by: Bruce W. Darby | last post by:
This will be my very first VB.Net application and it's pretty simple. But I've got a snag in my syntax somewhere. Was hoping that someone could point me in the right direction. The history: My...
25
by: vikram Bhuskute | last post by:
I have plans to train some students for C in coming weeks. I am badly looking for C programming assignments fot them. Need 1) lots of them per topiic 2) Should be doable for beginners thanks...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.