windows service
-
Hi i want write a windows service and start it in spesific time and date but i dont know set a parameter for onstart method. can any body help me or give me a sample
-
Hi, Windows services are program that runs in the background forever, however if you want to start your service at a particular time you will have to implement service controller. But i dont know why you want to do that. Just implement timer control and check for the event at which you want your windows service to do something Regards
-
Hi, Windows services are program that runs in the background forever, however if you want to start your service at a particular time you will have to implement service controller. But i dont know why you want to do that. Just implement timer control and check for the event at which you want your windows service to do something Regards
i want it start a particulat time or date . my mean is i want run it in particular time or date. can write me a simple example about time plz. my behinde code is this: protected override void OnStart(string[] args) { //TODO: Add code here to start your service. ServiceController controller = new ServiceController(); string status = controller.Status.ToString(); eventLog1.WriteEntry("my service started"); //Start the service controller.Start(); //Stop the service controller.Stop(); } and how can we trace it?
-
i want it start a particulat time or date . my mean is i want run it in particular time or date. can write me a simple example about time plz. my behinde code is this: protected override void OnStart(string[] args) { //TODO: Add code here to start your service. ServiceController controller = new ServiceController(); string status = controller.Status.ToString(); eventLog1.WriteEntry("my service started"); //Start the service controller.Start(); //Stop the service controller.Stop(); } and how can we trace it?
Have a look at the link. Hope you will extract information out of it. http://www.codeproject.com/KB/install/csharpsvclesson2.aspx[^]