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

Raising/Catching an timer event

Hi,

I'm a bit knew to events, so help would be appreciated. I'm developing
a windows service that needs to fire an AD update at a set time every
night (04:00).

I'm guessing I need to capture a system.timer event at that time and
then run my process. Beyond this I'm pretty clueless...

Has anyone got a sample piece of code that does something similar to
this, or can point me towards a decent example.

Cheers.
Nov 16 '05 #1
1 1258
Ian,

I wouldn't use a windows service to do this, since it is a waste of
processing time for most of the day when you aren't performing the update.

Rather, you should create an EXE which will perform your update, and
then add the task to the Scheduled Tasks, setting it to fire at 4:00 every
night.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ian Walsh" <sp*******@tiscali.co.uk> wrote in message
news:90**************************@posting.google.c om...
Hi,

I'm a bit knew to events, so help would be appreciated. I'm developing
a windows service that needs to fire an AD update at a set time every
night (04:00).

I'm guessing I need to capture a system.timer event at that time and
then run my process. Beyond this I'm pretty clueless...

Has anyone got a sample piece of code that does something similar to
this, or can point me towards a decent example.

Cheers.

Nov 16 '05 #2

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

Similar topics

2
by: Olli Piepponen | last post by:
Hi, I'm having a little problem catching keystrokes under Windows. I did a little research and found that with mscvrt.getch() one can cath a single key that is pressed. However this doesn't work...
4
by: serge calderara | last post by:
Dear all, I have a class wich is raising events as normally it should do. having a form in the same assembly wich is catching those events works fne. Raise events gets catch normaly within the...
6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
2
by: Deadly_M | last post by:
I have asked this question before but it was a while ago , hope there are some new readers here now Windows XP, VB.NET I want to catch the event of a program being run for example user loads...
1
by: Amjad | last post by:
Hello, I have a main Windows Form and a Module class in a Solution. I'd like to know if a Timer.Tick event for example get raised in the Module when I'm running the Windows Form? The same...
5
by: kmcmanus | last post by:
I have just started to write a few business classes that are largely made up of properties (getters and setters). For each setter I want to fire a changed event - each event will have a unique...
1
by: Simon | last post by:
Hi all, I'm having a problem creating a global exception handler in a windows service that I'm making. Another poster suggested that the way to do this was to use the...
22
by: Oriane | last post by:
Hi there, I have to write an algorithm in .NET/C# which perform some task but has to be stopped after an intreval of dT seconds. Something like: dT = 30sec; for (;;) { t0 = GetCurrentTime...
1
by: mutoss | last post by:
what i need (and couldn't find) can be described as following. lets have 2 applications named target.exe and manager.exe. manager.exe has a timer and target.exe has a business logic in its keypress...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.