像CMD中传递参数 带空格

@echo off
echo -------------set system variable-----------------

set JAVA_HOME=%~1\Java\jdk
set CATALINA_HOME=%~2\tomcat
echo ----------end of set system variable------------
echo %~2
echo ----register and start tomcat service--------------
call "%~2"\tomcat\bin\service install tomcat

net start tomcat
echo ----end of start tomcat-----------------------------

posted on 2013-10-10 00:41  天神Deity  阅读(580)  评论(0编辑  收藏  举报

导航