hi all, I need to start windows service via a windows task scheduler. I have written a batch file and create task to run the batch file. but this is not actually starting the service.
call net start "mywindowsServiceName" NOR net start "IcDomainsRenewal" works . but if I double click batch file that start windows service.
also just to be aware windows task doe not have time ticker, I just need to run this service first of each once a month thats why thought about windows task scheduler rather than having time ticker to check each day.... any ideas to solve the problem or
improve windows service without task scheduler.... please
-----------------------------------------------
Thanks,
Pathiya
(Please mark as an answer if yes)
Pathiya007
Member
268 Points
264 Posts
start and stop windows service using windows task scheduler
Jan 13, 2012 03:30 PM|LINK
hi all, I need to start windows service via a windows task scheduler. I have written a batch file and create task to run the batch file. but this is not actually starting the service.
call net start "mywindowsServiceName" NOR net start "IcDomainsRenewal" works . but if I double click batch file that start windows service.
also just to be aware windows task doe not have time ticker, I just need to run this service first of each once a month thats why thought about windows task scheduler rather than having time ticker to check each day.... any ideas to solve the problem or improve windows service without task scheduler.... please
Thanks,
Pathiya
(Please mark as an answer if yes)
swapna.anu
Contributor
2658 Points
745 Posts
Re: start and stop windows service using windows task scheduler
Jan 13, 2012 03:40 PM|LINK
Hi,
I created windows service once and used the same process to schedule it. It works fine even now.
In the batch file I have only the below line to start the service.
and for stopping another batch file with below line of code
Followed the below link to schedule it to run every day. You can even schedule it for monthly
http://www.basiccomputerinformation.ca/schedule-a-task-in-windows/
Hope this helps.
Thanks,
Swapna