473,385 Members | 2,069 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,385 software developers and data experts.

Dotnet scheduler like the Windows "Schedued Tasks" scheduler?

Hi,

I am writing an App in .Net that involves some scheduling of tasks. I was
wondering if anybody has come accross any components or examples of how to
implement a schedule manager like the one in the Task Scheduler for Windows?

Basically I'm after something that'll allow me to specify a "recurring" or
"once off" schedule with advanced options like "the first monday in the
month" etc.

I could go ahead and write my own, but a wee voice keeps whispering the
words "Code Reuse" and "go on, be lazy" ;)

If I can't find anything that is of any use, I'll go ahead and write my own.
If anybody else is interested in a reusable component like this, let me know
your ideas and I'll take them into account when writing it. Being close to
Christmas and all that, I might even post the finished code ;)

Cheers for the help.

Trev.


Jul 21 '05 #1
11 4036

"Codemonkey" <hu*********@hotmail.com> wrote in message
news:uo**************@TK2MSFTNGP11.phx.gbl...
Hi,

I am writing an App in .Net that involves some scheduling of tasks. I was
wondering if anybody has come accross any components or examples of how to
implement a schedule manager like the one in the Task Scheduler for Windows?
Basically I'm after something that'll allow me to specify a "recurring" or
"once off" schedule with advanced options like "the first monday in the
month" etc.

I could go ahead and write my own, but a wee voice keeps whispering the
words "Code Reuse" and "go on, be lazy" ;)

If I can't find anything that is of any use, I'll go ahead and write my own. If anybody else is interested in a reusable component like this, let me know your ideas and I'll take them into account when writing it. Being close to
Christmas and all that, I might even post the finished code ;)


Just use the windows one:
http://www.msjogren.net/dotnet/eng/samples/misc.asp
http://www.codeproject.com/csharp/ta...lerlibrary.asp
http://www.codeproject.com/csharp/TSNewLib.asp
Jul 21 '05 #2

In addition, I've seen this example that wraps the windows Task Scheduler
API:

http://www.codeproject.com/csharp/TSNewLib.asp

But I'd be more interested in one that is a little bit more "self-contained"
(i.e. doesn't create Tasks in the Control Panel - even hidden ones.)
Jul 21 '05 #3
Thanks. I seen these and forgot to mention them in my first post. Although
it's pretty much exactly what I need, I'd like a self contained one (as
explained in my other post)

Cheers anyway.

Trev.
Jul 21 '05 #4
Hello Trev,

Thanks for your post. As I understand, you want to create a Scheduled Tasks
of your own. Please correct me if there is any misunderstanding. I now
share the following information with you:

Windows has a services named "Task Scheduler" which enables a user to
configure and schedule automated tasks. That is, it is this service that is
responsible for running programs at their scheduled times. I suggest that
you can also create a Windows Service which runs at background, monitors
the time, and launches the appropriate tasks. Please refer to the following
MSDN article for detailed information on .NET Windows Service Application:

Introduction to Windows Service Applications
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbconintroductiontontserviceapplications.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5
Thanks for the help. I don't think I'll need to go as far as writing a
service to host the Task Scheduling abilities that I need at the moment.

Here's my idea so far:

1) .net Class library that mimics the Windows Task Scheduler (with Task and
Trigger objects etc.)

2) This library can be hosted by any application (Windows Forms or Windows
Service etc.)

3) The settings for each task and schedule are saved along with the other
settings for the application that hosts it (removes the need for ".job"
files to be created)

4) Tasks are only triggered if the host application is running. This is fine
as most tasks will be related internally to the application itself.

Let me know if anybody has anything to add to this,

Thanks again for your help,
Trev.

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:C6**************@cpmsftngxa07.phx.gbl...
Hello Trev,

Thanks for your post. As I understand, you want to create a Scheduled Tasks of your own. Please correct me if there is any misunderstanding. I now
share the following information with you:

Windows has a services named "Task Scheduler" which enables a user to
configure and schedule automated tasks. That is, it is this service that is responsible for running programs at their scheduled times. I suggest that
you can also create a Windows Service which runs at background, monitors
the time, and launches the appropriate tasks. Please refer to the following MSDN article for detailed information on .NET Windows Service Application:

Introduction to Windows Service Applications
http://msdn.microsoft.com/library/de...us/vbcon/html/ vbconintroductiontontserviceapplications.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #6
hi, ive written a class in vb.net that does exactly what your looking for..
it contains almost all of the functionality that can be found in the Outlook
Appointment Recurrence option :-)


"Codemonkey" <hu*********@hotmail.com> wrote in message
news:um**************@TK2MSFTNGP10.phx.gbl...

In addition, I've seen this example that wraps the windows Task Scheduler
API:

http://www.codeproject.com/csharp/TSNewLib.asp

But I'd be more interested in one that is a little bit more "self-contained" (i.e. doesn't create Tasks in the Control Panel - even hidden ones.)

Jul 21 '05 #7
> hi, ive written a class in vb.net that does exactly what your
looking for


Nice one.

For the sake of saving me (and a few others who might need this
functionality in the future), would you consider sharing the code?

When I do get around to writing my own (if I have to), I was planning to
post an article on CodeProject (http://www.codeproject.com).

If you don't fancy sharing the code, never worry. I'm sure I'll be bored of
watching Christmas films over the holidays that I might get around to doing
it (Cough.... Nerd.... Cough...) ;)

Trev.

Jul 21 '05 #8
Hi,

Thanks for your information. Basically, I suggest that you can create a
Timer for each scheduled task, when a specified number of time units elapse
you can call Process.Start to start the task.

Process.Start Method (String)
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdiagnosticsprocessclassstarttopic3.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #9
Thanks for the info. It'll come in handy when it comes to writing the
application.

Trev.

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:3W****************@cpmsftngxa07.phx.gbl...
Hi,

Thanks for your information. Basically, I suggest that you can create a
Timer for each scheduled task, when a specified number of time units elapse you can call Process.Start to start the task.

Process.Start Method (String)
http://msdn.microsoft.com/library/de...us/cpref/html/ frlrfsystemdiagnosticsprocessclassstarttopic3.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #10
Hi mate, i would but i cant supply the code due to contractual terms layed
out in my contract ( i wrote it at work ya see)... the way it goes I guess..

it was too difficult.. if wanna ask any questions tho, then feel free to
ask..

j
"Codemonkey" <hu*********@hotmail.com> wrote in message
news:#R**************@TK2MSFTNGP10.phx.gbl...
hi, ive written a class in vb.net that does exactly what your
looking for
Nice one.

For the sake of saving me (and a few others who might need this
functionality in the future), would you consider sharing the code?

When I do get around to writing my own (if I have to), I was planning to
post an article on CodeProject (http://www.codeproject.com).

If you don't fancy sharing the code, never worry. I'm sure I'll be bored

of watching Christmas films over the holidays that I might get around to doing it (Cough.... Nerd.... Cough...) ;)

Trev.


Jul 21 '05 #11
Cheers J, I thought you were just teasing us ;)

I'll let you know how I get on (If I do go ahead and write it)

Trev.

"jmag" <ja***@maguire79.fsnet.co.uk> wrote in message
news:ux**************@tk2msftngp13.phx.gbl...
Hi mate, i would but i cant supply the code due to contractual terms layed
out in my contract ( i wrote it at work ya see)... the way it goes I guess..
it was too difficult.. if wanna ask any questions tho, then feel free to
ask..

j
"Codemonkey" <hu*********@hotmail.com> wrote in message
news:#R**************@TK2MSFTNGP10.phx.gbl...
hi, ive written a class in vb.net that does exactly what your
looking for


Nice one.

For the sake of saving me (and a few others who might need this
functionality in the future), would you consider sharing the code?

When I do get around to writing my own (if I have to), I was planning to
post an article on CodeProject (http://www.codeproject.com).

If you don't fancy sharing the code, never worry. I'm sure I'll be bored

of
watching Christmas films over the holidays that I might get around to

doing
it (Cough.... Nerd.... Cough...) ;)

Trev.



Jul 21 '05 #12

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

Similar topics

3
by: Greg Bryant | last post by:
I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul, so I'm looking at redoing it, and while I'm at it,...
4
by: keepyourstupidspam | last post by:
Anyone know of a reliable design for a Windows C++ Task Scheduler Class. The scheduler will expose a member function that will add schedules, its parameters will be an interval to run the tasks...
0
by: johannes | last post by:
there are much apps wich have a control like file and folder tasks in the explorer. id like to have such a control for navigation on my own app where can i find it??
3
by: Lenn | last post by:
Hi, I developed a console .exe application which is going to run on scheduled basis, it will be scheduled to run in Windows Scheduled tasks. Client wants some kind of utility that would help them...
14
by: Codemonkey | last post by:
Hi, I am writing an App in .Net that involves some scheduling of tasks. I was wondering if anybody has come accross any components or examples of how to implement a schedule manager like the one...
5
by: Brian Henry | last post by:
Is there any information out there on how to build a good schedule application that i can tell it at 1pm do this or at midnight do that? thanks!
6
by: Steve4D | last post by:
With an ASP.NET application, I try to run an external program (like EXE, BAT) with a logon of an another user. I use CreateProcessWithLogonW from API "advapi32.dll" . When my ASP.NET application...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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.