写一个如下的批处理
@ ECHO
@ ECHO.
@ ECHO. 说 明
@ ECHO --------------------------------------------------------------------
@ ECHO 本批处理执行后,将作以下一些设置:
@ ECHO 1、设置JAVA_HOME 环境变量D:/jdk1.6.0_07;
@ ECHO 2、设置PATH 环境变量D:/jdk1.6.0_07/bin;%PATH%;
@ ECHO 3、设置CLASSPATH 环境变量D:/jdk1.6.0_07/lib;
@ ECHO --------------------------------------------------------------------
@ ECHO.
@ ECHO.
PAUSE
set CLASSPATH=D:/jdk1.6.0_07/lib
set PATH=D:/jdk1.6.0_07/bin;%PATH%
set JAVA_HOME=D:/jdk1.6.0_07
cls
@ ECHO.
@ ECHO --------------------------------------------------------------------
@ ECHO 配置JAVA环境变量完成。
@ ECHO 接下来配置TOMCAT环境变量。
@ ECHO --------------------------------------------------------------------
@ ECHO.
PAUSE
cls
@ ECHO.
@ ECHO. 说 明
@ ECHO --------------------------------------------------------------------
@ ECHO 本批处理执行后,将作以下一些设置:
@ ECHO 1、设置CATALINA_HOME 环境变量D:/apache-tomcat-6.0.26
@ ECHO 2、设置CATALINA_BASE 环境变量D:/apache-tomcat-6.0.26
@ ECHO 3、设置TOMCAT_HOME 环境变量D:/apache-tomcat-6.0.26
@ ECHO 4、设置CLASSPATH 环境变量D:/apache-tomcat-6.0.26/lib;%CLASSPATH%;
@ ECHO 4、设置PATH 环境变量D:/apache-tomcat-6.0.26/bin;%PATH%;
@ ECHO --------------------------------------------------------------------
@ ECHO.
@ ECHO.
PAUSE
;GooDu编。QQ:787919676
set CATALINA_HOME=D:/apache-tomcat-6.0.26
set CATALINA_BASE=D:/apache-tomcat-6.0.26
set TOMCAT_HOME=D:/apache-tomcat-6.0.26
set PATH=D:/apache-tomcat-6.0.26/bin;%PATH%
set CLASSPATH=D:/apache-tomcat-6.0.26/lib;%CLASSPATH%
@ ECHO.
@ ECHO --------------------------------------------------------------------
@ ECHO 接下来配置TOMCAT环境变量。
@ ECHO --------------------------------------------------------------------
@ ECHO.
PAUSE
exit