|Hard to tell how something this simple can get so convoluted.|
It's not about delims, bq or truncated file names.
You **DO** need tokens=* if you hope to get the whole line.
The output you posted in #14 looks JUST LIKE you left out the first line. If so, it's guarenteed to not work.
Paste in the lines below and I think you will see that it sets each line to a sequentially numbered var, like:
v2=some more stuff
@echo off & setLocal EnableDELAYedeXpansion
for /f "tokens=* delims= " %%a in (myfile) do (
set /a N+=1
Helping others achieve escape felicity