Re: how to write this program
From: Bob Grommes (bob_at_bobgrommes.com)
Date: 03/19/04
- Next message: Kovan Akrei: "thread unstarted"
- Previous message: ilPostino: "Re: OOP 101 - Inheritance confusion"
- In reply to: Afei: "how to write this program"
- Next in thread: Jared Parsons [MSFT]: "Re: how to write this program"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 19 Mar 2004 12:25:41 -0700
You can simply execute the program from the Windows Scheduler every 15
minutes.
You could write it as a Windows Service, and in between each execution of
its task, call Thread.Sleep(TimeSpan.FromMinutes(15))
Probably there are other ways as well; it depends on what you're trying to
accomplish, what else (if anything) the task needs to interact with and
whether or not it needs to interace with the user at all.
--Bob
"Afei" <mailtoyaofei@yahoo-dot-com.no-spam.invalid> wrote in message
news:405b2523$1_2@Usenet.com...
> hi,
> I want to write a program that every some specific time(say, 15
> minutes) do something. But i am out of mind how to do it? Should i
> use threads or some other technologies?
>
> Thanks.
- Next message: Kovan Akrei: "thread unstarted"
- Previous message: ilPostino: "Re: OOP 101 - Inheritance confusion"
- In reply to: Afei: "how to write this program"
- Next in thread: Jared Parsons [MSFT]: "Re: how to write this program"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|