|Actually, i don't think the dot had anything to do with it. You must have fixed something else, but if it's working....|
for /f "tokens=1,2 delims=," %%a in ("%x%") do
fixed it on my end, but i don't know why. The comma in "delims" gets replaced with a space when 'echo %x%' is used, but not this other way.