I am trying to escape ampersand in a FOR /F statement in windows command line script, as follows:
FOR /F "tokens=1,2 delims=^&" %%A IN ("%Var%") DO (...
Result from running the script is still:
& was unexpected at this time
What is the correct way to use & as a delimeter? Or should it be replaced with something else in the string to be parsed?