My faithful path traversal method no longer works - it sees spaces as delimiters. It's been a while since I needed to do batch programming.
When using the FOR
loop, the only one that allows delimiters are the FOR /F
option.
I don't want to create a temporary file containing the path, was hoping to do something like below:
C:\Users>for /f "delims=;" %i in %path% do echo %i C:\Program was unexpected at this time. C:\Users>for /f "delims=;" %i in (%path%) do echo %i \Common was unexpected at this time. C:\Users>for /f "delims=;" %i in 'foo;bar' do echo %i 'foo was unexpected at this time.