Click here to Skip to main content
15,919,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Expert,

New to C#.


How do you build a batch process which will run at specific days and times in C# ?

Please I am new to c#.


Gone through a lot of examples, but i am not getting a simple example for beginners.

Thanks

What I have tried:

Checked the internet and not getting a simple intro
Posted
Updated 28-Feb-16 16:18pm

1 solution

you dont provide a lot of information on what you're trying to achieve apart from 'batch process'

- do need need fault tolerance, recovery after failure, persistence, logging, monitoring, access control etc.
- What is a batch process - a number of executables (exe's) held together by DOS script or some other script ?
- given the previous question, what is the 'granularity' of failure
- do you want emails on 'failed processes'
- is this a fully automated or partially automated workflow ?
- What version of windows etc you have

So you make it a bit hard to answer except in very general terms - for a start, you could consider :-

option 1 : a set of c# console programs/dos scripts scheduled by Quartz.Net running 'standalone' or the Windows task scheduler

option 2 : a Windows 32 Service in c# using embedded Quartz.Net running tasks (exe's) as 'assemblies'

These 2 options are easy enough to start, but you need to add all the framework yourself

option 3 : A fully fledged batch processor costing $$ (there are some nice ones Ive used in the past - ActiveBatch, JAMS Scheduler to name two)

There's umpteen ways to skin a cat - but without detailed requirements etc I cant tell which knife to use

[edit add Visual Cron, Adtempus to the list of 'fully fledged' batch processors - Ive used ActiveBatch and AdTempus extensively, depending on your requirements, they could be a match if you had some cash - not a large amount for AdTempus]
 
Share this answer
 
v2
Comments
Member 10744248 29-Feb-16 2:06am    
Windows 7.

The batch process will send messages (i.e mail and messages)to E-mail and mobile Phone.

How do you accomplish this?
Garth J Lancaster 29-Feb-16 2:14am    
given you provide so little other information, I'd write a console program that uses xml or JSON for the details of what to send/who to/how, and use this https://taskscheduler.codeplex.com/ to schedule it using Windows Task Scheduler

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900