apparently this batch file should return the concatenation of the input files given as arguments, but it is not working:
set files=
for %%i in (%1 %2 %3 %4 %5 %6 %7 %8) do (
echo %%i
set files=%files% %%i
)
echo "the file list is %files%"
when invoked with:
mybatchfile.bat example1.txt example2.txt
the expected result should be:
example1.txt
example2.txt
the file list is example1.txt example2.txt
but in the final line only has "example2.txt". Any idea???