startup.bat
@echo off set path=X:xxxxxxxJavaJDKjrein START "项目名" "%path%java" -jar 要启动的jar包路径
shutdown.bat 这是根据项目名停止项目运行
wmic process where (commandline LIKE "%%项目名%%" and caption="java.exe") call terminate