Batch Process Lines in Variable?

Me too, if I'm honest!

As I understand it:

  • You can access elements by index, using [aNumber] -- so accessing element 3 is [3]
  • The default item delimiter is , but if you are using something else you put it after the ] -- if we were using a .-delimited array, accessing element 3 would be [3].
  • You can't use Return as an array delimiter (here) so we replace every Return in the original list with something that will not be found in the text otherwise -- ,KMSEP,
  • So, after replacing the Returns in our list, accessing element 3 would be [3],KMSEP,

Putting that altogether with our variable name and the variable, Local_i, that holds our incrementing counter gets us:

%Variable%Local__URLs[Local_i],KMSEP,%

So each turn of the loop accesses "element i of the ,KMSEP,-delimited list held in Local__URLs".

At least, I think that's what's going on!

2 Likes