Generally, i want do do some operations to some vars in a loop, the number of vars may change, i tried a sample like this:
set header1=appdef1.h
set header2=appdef2.h
set header3=appdef3.h
set headers= "%header1% %header2% %header3%"
for /f "delims= " %%i in (%headers%) do echo %%i
pause
while it only output "appdef.h", confusing!