I want to generate a classpath automatically with all the *.jar
files contained under my lib
folder.
I can't find a way to list all these files with their absolute path, so that I can build my classpath
variable.
It seems the dir
command do not allow to get the absolute path, even when you go recursively with a /s
.
Basically what I had in mind was something like :
set classpath = ./conf
for %%i in (`dir /s /withaboslutepath *.jar`) do set classpath = %classpath%;"%%x"
Is there a way to achieve this ?