|It turns out that in your files.txt the name and size are separated by a tab. When I changed the tab to a space the problem went away. I have no idea why.|
Here's a script to change tab to space.
:: chg tab to space
@echo off > newfile & setLocal EnableDelayedExpansion
for /f "tokens=1-2 delims= " %%a in (files.txt) do (
echo %%a %%b >> newfile
If at first you don't succeed, you're about average.