BigMan said:
Wow!
Could you explain this: "%path:;=";"%"
The standard for has the space "," and the ";" as standard delmiters.
(at least - may be locale dependant)
If there are spaces in any of the folders in the path, for will
break at that point. To avoid this I quote every single path by
replacing all simicolons with quote semicolon quote plus quotes
at the begin and end resulting in proper parsed output.
See:
for /?
set /?
for details on handling environment vars.