vbs-bat jre & tomcat
vbs启动bat
@echo off
set path=.\jre\bin;
start javaw -jar .\jre\bin\note.jar
createobject("wscript.shell").run "jre\bin\batr.bat",0
cd tomcat\bin
startup.bat
cd tomcat\bin
shutdown.bat
jre与tomcat同级
set "CURRENT_DIR=%cd%"
set "CATALINA_HOME=%CURRENT_DIR%\tomcat"
set JRE_HOME=%CURRENT_DIR%\jre
set CLASSPATH=%JRE_HOME%\lib
set PATH=%PATH%;%JRE_HOME%\bin
set JAVA=java
call %CATALINA_HOME%\bin\startup.bat
set "CURRENT_DIR=%cd%"
set "CATALINA_HOME=%CURRENT_DIR%\tomcat"
set JRE_HOME=%CURRENT_DIR%\jre
set CLASSPATH=%JRE_HOME%\lib
set PATH=%PATH%;%JRE_HOME%\bin
set JAVA=java
call %CATALINA_HOME%\bin\shutdown.bat
exe与jre同级
createobject("wscript.shell").run "apache\start.vbs",0
createobject("wscript.shell").run "apache\tom.html",0