rem ----------------
rem Java home
rem ----------------

rem JDK home directory (no trailing path separator)
set JAVA_HOME=<Java JDK home directory>

rem Java endorsed directory
rem If not set, the catalina scripts default applies (%CATALINA_HOME%/common/endorsed)
rem set JAVA_ENDORSED_DIRS=<Java endorsed directory>

rem ----------------
rem Tomcat config
rem ----------------

rem Tomcat 4.1.x home directory (no trailing path separator)
set CATALINA_HOME=<Tomcat home directory>

rem Tomcat 4.1.x base directory (no trailing path separator)
rem If you do not work with bases, please set base directory to CATALINA_HOME
set CATALINA_BASE=%CATALINA_HOME%

cd %CATALINA_HOME%
bin\catalina.bat stop