I have the following code:
set "x=c:\aa;c:\bb;c:\c c"
for %%g in (%x%) do (
echo %%g
)
It outputs:
c:\aa
c:\bb
c:\c
c
It interprets the space as delimiter. But I don't want this. Only the semicolon should be a valid separator. Thee output should be:
c:\aa
c:\bb
c:\c c
It should work for any number of entries. I found solutions, but they where quite complicated. I'm looking for a simple solution, if there's any. The list can have another format if needed.