I've created a service in c# that performs a certain action at a particular
day of the month
I want this service to kick off the action every third Tuesday of the month.
How would I set the service to run a desired action if the day is equal to
the third day of the month? Would that be done by programming it or using a
timer ? How would that be done. 7 2921
Are you sure you don't want to use windows scheduler to do this? This way
your service isn't just running constantly checking if it's time to run yet.
The scheduler will just start your executable at the right time.
"Jason" <so*****@microsoft.comwrote in message
news:uD**************@TK2MSFTNGP06.phx.gbl...
I've created a service in c# that performs a certain action at a
particular day of the month
I want this service to kick off the action every third Tuesday of the
month. How would I set the service to run a desired action if the day is
equal to the third day of the month? Would that be done by programming it
or using a timer ? How would that be done.
"Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Are you sure you don't want to use windows scheduler to do this? This way
your service isn't just running constantly checking if it's time to run
yet. The scheduler will just start your executable at the right time.
For a complex check like this, I think it would be best to use Task
Scheduler to start your program every day at a particular time, then let
your program check if it's the third Tuesday, or six days after a blue moon,
or during Lent, or whatever special check you need.
>
"Jason" <so*****@microsoft.comwrote in message
news:uD**************@TK2MSFTNGP06.phx.gbl...
>I've created a service in c# that performs a certain action at a particular day of the month
I want this service to kick off the action every third Tuesday of the month. How would I set the service to run a desired action if the day is equal to the third day of the month? Would that be done by programming it or using a timer ? How would that be done.
I think Task Scheduler already supports the concept of third Tuesday of
every month. I'm not sure what the advantage if of reinventing the wheel.
Sure, if the check goes beyond something that is already supported. But if
it's already there, why bother?
"Ben Voigt" <rb*@nospam.nospamwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
>
"Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Are you sure you don't want to use windows scheduler to do this? This way your service isn't just running constantly checking if it's time to run yet. The scheduler will just start your executable at the right time.
For a complex check like this, I think it would be best to use Task
Scheduler to start your program every day at a particular time, then let
your program check if it's the third Tuesday, or six days after a blue
moon, or during Lent, or whatever special check you need.
>> "Jason" <so*****@microsoft.comwrote in message news:uD**************@TK2MSFTNGP06.phx.gbl...
>>I've created a service in c# that performs a certain action at a particular day of the month
I want this service to kick off the action every third Tuesday of the month. How would I set the service to run a desired action if the day is equal to the third day of the month? Would that be done by programming it or using a timer ? How would that be done.
"Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:ug**************@TK2MSFTNGP03.phx.gbl...
>I think Task Scheduler already supports the concept of third Tuesday of every month. I'm not sure what the advantage if of reinventing the wheel.
Ok, seems that it does. I'm more familiar with the "at" command for
managing scheduled tasks, which seems to be less powerful schedule-wise (but
lets you run tasks under the SYSTEM account).
>
Sure, if the check goes beyond something that is already supported. But if
it's already there, why bother?
"Ben Voigt" <rb*@nospam.nospamwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
>> "Marina Levit [MVP]" <so*****@nospam.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>>Are you sure you don't want to use windows scheduler to do this? This way your service isn't just running constantly checking if it's time to run yet. The scheduler will just start your executable at the right time.
For a complex check like this, I think it would be best to use Task Scheduler to start your program every day at a particular time, then let your program check if it's the third Tuesday, or six days after a blue moon, or during Lent, or whatever special check you need.
>>> "Jason" <so*****@microsoft.comwrote in message news:uD**************@TK2MSFTNGP06.phx.gbl... I've created a service in c# that performs a certain action at a particular day of the month
I want this service to kick off the action every third Tuesday of the month. How would I set the service to run a desired action if the day is equal to the third day of the month? Would that be done by programming it or using a timer ? How would that be done.
You're correct Task Schedular will let me do that, however on a domain
enviroment, don't I need a domain account for it to run under?
"Ben Voigt" <rb*@nospam.nospamwrote in message
news:Od**************@TK2MSFTNGP06.phx.gbl...
"Marina Levit [MVP]" <so*****@nospam.comwrote in message
news:ug**************@TK2MSFTNGP03.phx.gbl...
>>I think Task Scheduler already supports the concept of third Tuesday of every month. I'm not sure what the advantage if of reinventing the wheel.
Ok, seems that it does. I'm more familiar with the "at" command for
managing scheduled tasks, which seems to be less powerful schedule-wise
(but lets you run tasks under the SYSTEM account).
>> Sure, if the check goes beyond something that is already supported. But if it's already there, why bother?
"Ben Voigt" <rb*@nospam.nospamwrote in message news:ue**************@TK2MSFTNGP06.phx.gbl...
>>> "Marina Levit [MVP]" <so*****@nospam.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl.. . Are you sure you don't want to use windows scheduler to do this? This way your service isn't just running constantly checking if it's time to run yet. The scheduler will just start your executable at the right time.
For a complex check like this, I think it would be best to use Task Scheduler to start your program every day at a particular time, then let your program check if it's the third Tuesday, or six days after a blue moon, or during Lent, or whatever special check you need.
"Jason" <so*****@microsoft.comwrote in message news:uD**************@TK2MSFTNGP06.phx.gbl... I've created a service in c# that performs a certain action at a particular day of the month > I want this service to kick off the action every third Tuesday of the month. How would I set the service to run a desired action if the day is equal to the third day of the month? Would that be done by programming it or using a timer ? How would that be done. > > >
You can specify in the scheduler what account the executable should be run
under. You provide the credentials, and the scheduler runs that task as if
it were started by the user.
"Jason" <so*****@microsoft.comwrote in message
news:OB**************@TK2MSFTNGP02.phx.gbl...
You're correct Task Schedular will let me do that, however on a domain
enviroment, don't I need a domain account for it to run under?
"Ben Voigt" <rb*@nospam.nospamwrote in message
news:Od**************@TK2MSFTNGP06.phx.gbl...
>"Marina Levit [MVP]" <so*****@nospam.comwrote in message news:ug**************@TK2MSFTNGP03.phx.gbl...
>>>I think Task Scheduler already supports the concept of third Tuesday of every month. I'm not sure what the advantage if of reinventing the wheel.
Ok, seems that it does. I'm more familiar with the "at" command for managing scheduled tasks, which seems to be less powerful schedule-wise (but lets you run tasks under the SYSTEM account).
>>> Sure, if the check goes beyond something that is already supported. But if it's already there, why bother?
"Ben Voigt" <rb*@nospam.nospamwrote in message news:ue**************@TK2MSFTNGP06.phx.gbl...
"Marina Levit [MVP]" <so*****@nospam.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl. .. Are you sure you don't want to use windows scheduler to do this? This way your service isn't just running constantly checking if it's time to run yet. The scheduler will just start your executable at the right time.
For a complex check like this, I think it would be best to use Task Scheduler to start your program every day at a particular time, then let your program check if it's the third Tuesday, or six days after a blue moon, or during Lent, or whatever special check you need.
> "Jason" <so*****@microsoft.comwrote in message news:uD**************@TK2MSFTNGP06.phx.gbl.. . >I've created a service in c# that performs a certain action at a >particular day of the month >> >I want this service to kick off the action every third Tuesday of the >month. How would I set the service to run a desired action if the day >is equal to the third day of the month? Would that be done by >programming it or using a timer ? How would that be done. >> >> >> > >
On Thu, 31 Aug 2006 15:20:06 -0400, "Marina Levit [MVP]" <so*****@nospam.com>
wrote:
>You can specify in the scheduler what account the executable should be run under. You provide the credentials, and the scheduler runs that task as if it were started by the user.
[snip]
Be careful (if you can) that the user you choose or create has a password that
does not expire. If you don't you'll have to go and change it at the end of
every expiration period. And that is a real pain ;o)
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mark Anthony |
last post by:
ok so first i will give write the question out, my code, the db
structure, then what is going wrong.
Write a report to return the top store in terms of Sales Dollars for
each month sales have...
|
by: johkar |
last post by:
I need to document.write out a select list populated with the dates for the
first and third Wednesday of each month. How do I get to the actual days?
<select name="mySelect">
<option value="Oct...
|
by: amit.gaind |
last post by:
Please suggest something to get date corresponding to 2nd wednesday of
each month in VB.NET.
|
by: amit.gaind |
last post by:
Please suggest how to get date correponding to 2nd wednesday of each
month ?
|
by: ats |
last post by:
Does anybody have any sample code for calculating the date for teh last
Friday in each month.
TIA
--
ats@jbex
When an old lady got hit by a truck
I saw the wicked gleam in your eyes
|
by: AccessHunter |
last post by:
I have the list of patients in the admittance table who were in care during the years 2004, 2005 and 2006.
The admittance table has fields, CaseID, SeqNbr, Birthdate
I want to find the patients who...
|
by: drrajnishpatel via AccessMonster.com |
last post by:
i am trying to get "ID" an incremental number that simply resets to 1 each
month in my "table1" thanks,
--
Message posted via AccessMonster.com...
|
by: Microblitz |
last post by:
Graph of top four products each month for last 6 months?
(Yeah I know I typ'od the title)
I need create a chart which displays the four highest selling products for each month in the last 6...
|
by: Gurunath Dhage |
last post by:
Need help on access database design and queries
Hi All, I’m working on a small project for loan Financial service company. I’m developing a Schedule Entry System . It has a Leasee who takes the...
|
by: bnashenas1984 |
last post by:
Hi everyone
I'm building an Ecommerce website with PHP and MYSQL.
What I need to do is to categorize orders for each month or year to show a statistic table
The DB table looks like this :
ID :...
|
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...
|
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...
|
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,...
|
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,...
|
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: 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...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
| | |