anchor.diff:  set "CURRENT_DIR=%cd%"
   if not "%CATALINA_HOME%" == "" goto gotHome
   set "CATALINA_HOME=%cd%"
  -if exist "%CATALINA_HOME%\bin\tomcat7.exe" goto okHome
  +if exist "%CATALINA_HOME%\bin\tomcat8.exe" goto okHome
   rem CD to the upper dir
   cd ..
   set "CATALINA_HOME=%cd%"
   :gotHome
  -if exist "%CATALINA_HOME%\bin\tomcat7.exe" goto okHome
  +if exist "%CATALINA_HOME%\bin\tomcat8.exe" goto okHome
   echo The tomcat.exe was not found...
   echo The CATALINA_HOME environment variable is not defined correctly.
   echo This environment variable is needed to run this program
  
positive.code: set "CATALINA_BASE=%CATALINA_HOME%"
  :gotBase
  
  set "EXECUTABLE=%CATALINA_HOME%\bin\tomcat7.exe"
  
  rem Set default Service name
  set SERVICE_NAME=Tomcat7
  set PR_DISPLAYNAME=Apache Tomcat 7
  
  if "x%1x" == "xx" goto displayUsage
  set SERVICE_CMD=%1
  
negative.code: rem Use the environment variables as an example
  rem Each command line option is prefixed with PR_
  
  set PR_DESCRIPTION=Apache Tomcat 8 Server - http://tomcat.apache.org/
  set "PR_INSTALL=%EXECUTABLE%"
  set "PR_LOGPATH=%CATALINA_BASE%\logs"
  set "PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_BASE%\bin\tomcat-juli.jar;%CATALINA_HOME%\bin\tomcat-juli.jar"
  