I have created a windows service.
I want to invoke it repeatedly for every 5 seconds through out the day.
I had scheduled a windows task to do that but the windows service doesnt seem to get invoked when invoked from the windows task.
I am using `NET START “Windows Service Name.exe” to schedule task under windows task scheduler.
It runs properly when I manually try to start the service.
What could be wrong?
Got the solution..!!
Added a new windows task to close the service using NET STOP command.
This helped me.
Hope this helps others. 🙂