I created a WinService and set up its start and stop on Scheduled Tasks. But everyday after the service is started for about 20 seconds, it automatically stops without any alert even though in Scheduled Task I did setup re-starting if starting fails. Therefore, I have to re-start the service manually everyday morning. Now, I want to write a batch file that can implement the following tasks:
1) Check where the WinService is running
2) If not in 1), start the service
3) Write the record for 1) and 2).
I did read a couple posted threads from websites, but I have not found one one that provides a good procedure to follow up. If you can share your experience on it, it will be greatly appreciated.