473,326 Members | 2,148 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,326 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
Nov 20 '05 #1
3 2373
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
Nov 20 '05 #2
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

Nov 20 '05 #3
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

Nov 20 '05 #4

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.