Running a batch file before tomcat service starts when user manually starts the service in services.msc
问题 I would like to know if there is any way of running an operation (like, calling a batch file) before a service is started using services.msc? I want my batch file to run before the service (tomcat installed as service) is actually started, when the user manually clicks 'Start' in Services. I don't know if this is possible or not. Thank you for your help in advance! 回答1: The answer to your question is NO , unless you want to modify Apache's procrun (which is written in C language). Depending