Batch : list all the subfiles with their absolute path
Posted
by subtenante
on Stack Overflow
See other posts from Stack Overflow
or by subtenante
Published on 2010-03-16T08:54:01Z
Indexed on
2010/03/16
8:56 UTC
Read the original article
Hit count: 370
I want to generate a classpath automatically with al 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 ?
© Stack Overflow or respective owner