I want to add all the jar files in a directory to my CLASSPATH from my batch file. I tried something like:
for %%i in (c:\java\lib\*.jar) do set PRE_CLASSPATH=%%i;%PRE_CLASSPATH%
But the PRE_CLASSPATH does not contain all the files in the lib directory but only the last file. Any idea what the issue is? What's a descent workable solution?