your solutions looks like the one of sowgtsoi, without the part of splitting down to 1024 chars.
It's more clear, but you can optimize the for-loop.
Because the maximum allowed string length is less than 8192 characters, this should always be enough
Code: Select all
for /L %%A in (12,-1,0) do
jeb