I am reading some strings from a batch file and trying to append them all, separated by a space. Here is the code
for /F %%x in (C:\dir_1\deploy_build\apps.properties) do (
set warFiles=%%x%warFiles%
)
echo %warFiles%
if the content of the properties file is
sz1056
warFile1
warFile2
the output I am getting is warFile2
but the output that i am expecting is sz1056 warFile1 warFile2
How can I do this?
%%x%warFiles%uses the current value ofxand the old (from before the loop started) value ofwarFiles