As an example that I can use for another project, how do I get: Code: @echo off set example="one a" "two b" "three c" "four d" "five e" for /f "delims=" %%G in ('%example%') do (echo %%G) pause Such that it returns: one a two b three c four d five e or "one a" "two b" "three c" "four d" "five e" Of course, then displaying the pause command. That was there if running the script in Windows so it doesn't exit on you! Either of the above is fine for the intended purpose Thanks!
I worked it out... with help of Google The above works as: Code: @echo off setlocal enableextensions enabledelayedexpansion set example="one a";"two b";"three c";"four d";"five e" call :start example goto :eof :start for /f "tokens=1,* delims=;" %%a in ("!%1!") do (set %1=%%b&echo %%a) if "!%1!" neq "" goto :start pause outputting: (then of course, the pause prompt since that was stated)
I worked it out... with help of Google The above works as: Code: @echo off setlocal enableextensions enabledelayedexpansion set example="one a";"two b";"three c";"four d";"five e" call :start example pause :start for /f "tokens=1,* delims=;" %%a in ("!%1!") do (set %1=%%b&echo %%a) if "!%1!" neq "" goto :start outputting: (then of course, the pause prompt since that was stated)