install.bat
来自「手机控制邮件以及附件的发送」· Batch 代码 · 共 28 行
BAT
28 行
@echo off
if ""%CATALINA_HOME%""=="""" goto no_tomcat
echo Coping the war file to webapps
copy install_folder\remote.war %CATALINA_HOME%\webapps
if not exist %CATALINA_HOME%\webapps\remote_temp\WEB-INF\web.xml goto make_temp
if not exist user.xml goto make_xml
:make_temp
mkdir %CATALINA_HOME%\webapps\remote_temp
mkdir %CATALINA_HOME%\webapps\remote_temp\WEB-INF
copy install_folder\web.xml %CATALINA_HOME%\webapps\remote_temp\WEB-INF
if not exist user.xml goto make_xml
goto exit
:make_xml
copy install_folder\user_sample.xml user.xml
goto exit
:no_tomcat
echo TOMCAT_HOME variable is not set
:exit
echo Installation Completed
pause
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?