bat脚本结合JAVA编程,运行可执行jar
mode con cols=120 lines=40 echo off echo ======================================== echo 选择LDE功能 echo 功能: echo 1- 发送正常包 echo 2- 发送3个点 echo 3- 退出 echo ======================================== echo 请选择: set /p id= set buildTarget= if "%id%" == "1" goto BuildAll if "%id%" == "2" goto BuildA if "%id%" == "3" goto end pause rem 调用led.jar :BuildAll set buildTarget="led.jar" title 发送正常包 goto make rem 调用led_dian.jar :BuildA set buildTarget="led_dian.jar" title 发送3个点 goto make :make java -jar %buildTarget%
推荐swing加exe4j打包成exe执行文件或者QT开发小工具
为梦想不止不休!