rem startup.bat文件所在目录 set "CATALINA_HOME=%~dp0" rem 截取\bin掉 set "CATALINA_HOME=%CATALINA_HOME:~0,-5%"