Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

thread scheduling

Status
Not open for further replies.

agroothe

Programmer
Feb 26, 2004
3
0
0
GB
Hi,

Does anyone know how to schedule the thread below to run every day at a specific time? The thread is called insided a windows service.

csVirtualBackupThread csVBT = new csVirtualBackupThread();
mAgentThread = new Thread(new ThreadStart(csVBT.Agent));
mAgentThread.Start();

Kind regards,
Andrew
 
The System.Threading namespace has a timer class. You would set the timer to call your callback every 24 hours.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top