How to schedule windows service in c#?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman  </font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman Hi,</font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman <span style="             I have created windows service in c#. I would like to schedule windows service manually or by coding .How can I do this.</font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman Actually, I am looking for</font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman My Service should start every day at 9’o clock in the morning and after some time My service should be stopped. As Microsoft has provided a Schedule Task in windows XP, where we can schedule any exe . In the same way how can I schedule any windows service to execute on specified time?</font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman  </font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman Any help is appreciated </font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman Regards,</font>
<p class=MsoNormal style="margin:0in 0in 0pt <font face="Times New Roman Rajesh</font>

View the full article
 
Back
Top