In short, you need to use the program "sc" to communicate with the services. So in a "Scheduled Task" you would put the run command as: C:\WINDOWS\system32\cmd.exe /c sc start tomcat7 To start tomcat and of course: C:\WINDOWS\system32\cmd.exe /c sc stop tomcat7 To stop tomcat. Fin.
Blog by abdza. Open Source, Computers, Gadgets, Life, Love and everything in between.