appendJar.cmd 内容如下
---------------------------
@set cp=.
@set curdir=%cd%
@dir *.jar
FOR %%f IN (%1/*.jar) DO call appendLibFile2Classpath.cmd %%f
@set cp
cd %curdir%
appendLibFile2Classpath.cmd 内容如下
-------------------------------
set cp=%cp%;%1
使用方法
-------------
appendJar.cmd c:/../../lib