I have a .bat file with the following commands.
My aim is concatenate the CLASSPATH variable value with the values of %%1.
The three first commands (outside of FOR command) concatenate the CLASSPATH correctly, but the FOR command only do it with the last value of the iteration.
Please help
SET CLASSPATH=%CLASSPATH%;test1.jar
SET CLASSPATH=%CLASSPATH%;test2.jar
SET CLASSPATH=%CLASSPATH%;test3.jar
FOR %%1 IN ("%CXFHOME%\lib\*.jar") DO SET CLASSPATH=%CLASSPATH%;%%1