===============指定tomcat============
shutdown.bat 和start.bat 进行配置
rem Guess CATALINA_HOME if not defined
set "CURRENT_DIR=%cd%"
set CATALINA_HOME=F:\apache-tomcat-7.0.16_ptest
if not "%CATALINA_HOME%" == "" goto gotHome
set "CATALINA_HOME=%CURRENT_DIR%"
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
==================显示启动后窗口的的title==============
catalina.bat
:doStart
shift
if not "%OS%" == "Windows_NT" goto noTitle
if "%TITLE%" == "" set TITLE=Tomcat测试环境
set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
goto gotTitle
:noTitle
set _EXECJAVA=start %_RUNJAVA%
:gotTitle
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
goto execCmd
==================杀进程================
echo 'kill tomcat'
call taskkill /IM java.exe