下面是批处理的源码,运行到最后一句的时候总是提示此处应有&&
@echo off
setlocal enableextensions
cd /d %~dp0
if exist jtm\init.cmd pushd . && goto init
if exist ..\jtm\init.cmd pushd .. & goto init
goto :eof
:init
call cmd\init.cmd
title 启动 Tomcat 和 MySQL 服务
call :execute cmd\tomcat_start.cmd
call :execute cmd\mysql_start.cmd
:execute
if exist %1 (call %1 && goto :eof) else echo %1 不存在. & pause & exit