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

Task Scheduling

Hi.

I am looking for a site or some coding ideas to run specific subs or
programs at certain times and/or dates.
For example, I would like to automate pulling data via ADO(.NET) at 6 am,
on the 21st of every month.

The only thing that I could think of was to set a timer control to fire
every few seconds to check date and time. I was hoping there was a better
way to do this without using the Task Scheduler or a product such as
Automate 5.

I have googled for hours without much luck.
Any direction is greatly appreciated.

Attila
Jul 21 '05 #1
5 4420
Attila wrote:
Hi.

I am looking for a site or some coding ideas to run specific subs or
programs at certain times and/or dates.
For example, I would like to automate pulling data via ADO(.NET) at 6 am,
on the 21st of every month.

The only thing that I could think of was to set a timer control to fire
every few seconds to check date and time. I was hoping there was a better
way to do this without using the Task Scheduler or a product such as
Automate 5.

I have googled for hours without much luck.
Any direction is greatly appreciated.

Attila


What's wrong with using the Task Scheduler? If you want to do it
programatically, I do have some code I could send you... It's a library
that I wrote in C#, but your welcome to use it if you would like :)

Tom Shelton
Jul 21 '05 #2
Yeah, what's wrong with task scheduler?
Anyway for that kind of things is better to have a service with a thread
checking with long wait states for the date/hour. If 21/6 start the
processing.

--
Horatiu Ripa
Software Development Manager
Business Logic Systems LTD
21 Victor Babes str., 1st floor, 3400 Cluj-Napoca, Romania
Phone/Fax: +40 264 590703
Web: www.businesslogic.co.uk

This email (email message and any attachments) is strictly confidential,
possibly privileged and is intended solely for the person or organization to
whom it is addressed. If you are not the intended recipient, you must not
copy, distribute or take any action in reliance on it. If you have received
this email in error, please inform the sender immediately before deleting
it. Business Logic Systems Ltd accepts no responsibility for any advice,
opinion, conclusion or other information contained in this email or arising
from its disclosure.

"Tom Shelton" <to*@mtogden.com> wrote in message
news:#u**************@tk2msftngp13.phx.gbl...
Attila wrote:
Hi.

I am looking for a site or some coding ideas to run specific subs or
programs at certain times and/or dates.
For example, I would like to automate pulling data via ADO(.NET) at 6 am, on the 21st of every month.

The only thing that I could think of was to set a timer control to fire
every few seconds to check date and time. I was hoping there was a better way to do this without using the Task Scheduler or a product such as
Automate 5.

I have googled for hours without much luck.
Any direction is greatly appreciated.

Attila


What's wrong with using the Task Scheduler? If you want to do it
programatically, I do have some code I could send you... It's a library
that I wrote in C#, but your welcome to use it if you would like :)

Tom Shelton

Jul 21 '05 #3
What's wrong with the task scheduler? You won't let an application sleep just to pull some data once every month, when there is
already a scheduler service running just for that.

Willy.
"Attila" <at******@hotmail.com> wrote in message news:ZH***************@twister.rdc-kc.rr.com...
Hi.

I am looking for a site or some coding ideas to run specific subs or
programs at certain times and/or dates.
For example, I would like to automate pulling data via ADO(.NET) at 6 am,
on the 21st of every month.

The only thing that I could think of was to set a timer control to fire
every few seconds to check date and time. I was hoping there was a better
way to do this without using the Task Scheduler or a product such as
Automate 5.

I have googled for hours without much luck.
Any direction is greatly appreciated.

Attila

Jul 21 '05 #4
Attila,
If you go the Timer route remember there are Three timer classes in .NET

System.Windows.Forms.Timer
System.Threading.Timer
System.Timers.Timer

Based on your description I would consider creating a Windows Service
project which is where Threading.Timer or Timers.Timer would be the better
choice.

Rather than make the timer logic unique to my program I would consider
making it a standalone program that interacted with mine, so when I needed
to control multiple programs I would only have 1 scheduler and multiple data
pulls. Of course this would probably be a Windows Service.

I would consider using the Task Scheduler if the data pulls occurred
somewhat infrequent (once a day, week, month). Rather than make my program
run all week for a 5 minute data pull. Of course if my data pull was a
service than I would look at Threading.Timer or Timers.Timer...

Hope this helps
Jay

"Attila" <at******@hotmail.com> wrote in message
news:ZH***************@twister.rdc-kc.rr.com...
Hi.

I am looking for a site or some coding ideas to run specific subs or
programs at certain times and/or dates.
For example, I would like to automate pulling data via ADO(.NET) at 6 am,
on the 21st of every month.

The only thing that I could think of was to set a timer control to fire
every few seconds to check date and time. I was hoping there was a better
way to do this without using the Task Scheduler or a product such as
Automate 5.

I have googled for hours without much luck.
Any direction is greatly appreciated.

Attila

Jul 21 '05 #5
Tom-

Would you be able to send me that code? I really would like to learn a
little more C#.

Part of the reason why I am not using the Task Scheduler is because of the
XP images that my work uses. The system admins tell me to just get Automate,
but my budget for this project has been used up on VB.NET and a Webserver.

Thank you much!
Danke
-Attila
"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Attila wrote:
Hi.

I am looking for a site or some coding ideas to run specific subs or
programs at certain times and/or dates.
For example, I would like to automate pulling data via ADO(.NET) at 6 am, on the 21st of every month.

The only thing that I could think of was to set a timer control to fire
every few seconds to check date and time. I was hoping there was a better way to do this without using the Task Scheduler or a product such as
Automate 5.

I have googled for hours without much luck.
Any direction is greatly appreciated.

Attila


What's wrong with using the Task Scheduler? If you want to do it
programatically, I do have some code I could send you... It's a library
that I wrote in C#, but your welcome to use it if you would like :)

Tom Shelton

Jul 21 '05 #6

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

Similar topics

1
by: Faiz | last post by:
We have developed an application in VB6 (say AA.exe). We wish to schedule the execution of this application (AA.exe) through Windows Task Scheduler. Is there a way through which we can add this...
2
by: Lasse Edsvik | last post by:
Hello I have a problem. I have a database with 1000 e-mails that i use in my mailinglist. And when i send them mails it takes kinda long since i attach a ..pdf file each time. so i was wondering...
2
by: database_guy | last post by:
I am getting the following error when trying to run or schedule a task. Please see below. There are more error explanations and I did not put all of them because I believe it to be one of the 1st...
7
by: Shane Story | last post by:
Have an app and would like to allow easy addition of MYAPP.EXE /F /P (for example) my prog with command line args, as a job to be run. Would like to make it easier on the user to run the app. ...
11
by: Max | last post by:
I'm writing a program that needs to be able to create custom .job files and add them to the scheduled tasks folder. What I'd like to know is, what is the format of a .job file and how do I go about...
1
by: Mark | last post by:
Hello, I am looking to buy a Winforms component to assist in task scheduling for an application I am developing. The tasks are time (00:00->23:59), day (Monday->Sunday) and week (1->52+)...
0
by: Lemune | last post by:
Hello. I need some help on building my sms services application (using modem). My application is to do some scheduling task based on daily, weekly and monthly. On the daily the choice are everyday,...
4
by: archana | last post by:
Hi all, I want to develop one windows service in which i want to provide some scheduling facility. What i want is to take start time frm one xml file and then at that specified start time. ...
1
by: greg | last post by:
Hello, I've been looking for a task scheduling component with a good UI to integrate into our software (preferrably C++) that utilizes a SQL database for storage of the jobs to run (as opposed...
4
by: Sid Price | last post by:
Is there a .NET (2003) class available somewhere that might provide a comprehensive task scheduler with a better granularity than the one minute of the built-in scheduler on XP? Even down to 15...
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: 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: 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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.