标签: windows batch-file cmd scripting
如何在批处理文件中扩展变量中的变量?这应打印compiler64.exe,而不是打印PLATFORM%
compiler64.exe
PLATFORM%
setlocal EnableDelayedExpansion set PLATFORM=X64 set FLAGS_COMPILER_X86=compiler32.exe set FLAGS_COMPILER_X64=compiler64.exe set FLAGS=%FLAGS_COMPILER_%PLATFORM%% echo %FLAGS%