我有段代码是这样的:- SETLOCAL ENABL EDELAYEDEXPANSION
- set CUSTOMCP
- for %%i in ( ..\lib\*.jar,%ORACLE_HOME%\jdbc\lib\*.jar,..\cfg\properties\*.xml,%PROJECT_HOME%\lib\*.jar,%PROJECT_HOME%\lib\3plib\*.jar,%PROJECT_HOME%\lib\endorsed\*.jar) do set CUSTOMCP=!CUSTOMCP!;%%i
- ENDLOCAL & set CLASSPATH=%CLASSPATH%%CUSTOMCP%
复制代码 但是最后输出后却是
输出的是!CUSTOMCP!而不是set CUSTOMCP=!CUSTOMCP!;%%i设的值.哪位高手能解惑?谢谢! |