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 tomcat7To start tomcat and of course:
C:\WINDOWS\system32\cmd.exe /c sc stop tomcat7To stop tomcat. Fin.
Comments