This batch line works with full filenames:
for /f "skip=3 delims=*" %%g in (cc_data_3-3-2016_15-37-19.xml cc_data_3-28-2016_0-25-36.xml) do (echo %%g >>tempfile.txt)
This one doesn't when filenames are replaced by a wildcard:
for /f "skip=3 delims=*" %%g in (*.xml) do (echo %%g >>tempfile.txt)
What's wrong and what should I do to make it work? I need the *.xml files. They are in the same folder as the batch file.