I\'ve been programming in dozens of languages for 20 years but I could never understand how \"FOR\" work in windows cmd shell batch file, no matter how hard I tried. I read
It works for me, try it.
for /f "tokens=* delims=;" %g in ('echo %PATH%') do echo %g%