473,797 Members | 3,187 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4444
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.co m> wrote in message
news:#u******** ******@tk2msftn gp13.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******@hotma il.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.Threadin g.Timer
System.Timers.T imer

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******@hotma il.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.co m> wrote in message
news:%2******** ********@tk2msf tngp13.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
9677
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 application (AA.exe) to Task Scheduler by using another application (say BB.exe), which is also developed using VB6? The operating systems can be Windows 2000, Windows XP or any later version of Windows... We also wish that whenever the second...
2
1706
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 if there is a way in asp to create a task on the webserver using asp to trigger a script that sends the mails. sure i could use server.scripttimeout but the thing is that i dont want to wait 30 seconds for the page to finish loading. and if there...
2
4730
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 few. Anyway, when I make a change in the task and click OK, the message pops up and I then hit Cancel but when I go directly back into the task, my change is there but the task will not run. I looked at the admin configuration and I notice that...
7
15201
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. I want to have it run automatically as specified by the user. What is the best thing to do and what platforms would it limit me to?
11
15428
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 adding in all the data so that the task could run correctly? If that is something not so easy to do, then say I need a certain part of my program to execute on a schedule... How do I go about writing some internal scheduling routine that won't...
1
1096
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+) specific. A task occurs at one time, on 1 or more days for any number of weeks. What I need to do is specific:
0
1324
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, weekdays, or every what ever value of the days. On the daily the choice are every what ever value of the week on the selected days. On the monthly the choice are on what date, on what day of what week, and on selected month. My scheduling task...
4
16933
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. Which timer should i use in windows service to start particular process at user specified time.
1
1546
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 to a front end for the windows task scheduler). Does anyone have any recommendations on any components out there to do this?
4
2712
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 seconds would be better than one minute. Sid.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.