I'm trying to parse my "Path" environment variable with a Batch line command. What I would like to achieve is having each substring of the "Path" variable to be printed on a different line.
With the following, I can print each token of the "Path" using semicolon ";" as a separator :
For /F "tokens=* delims=;" %i in ("%Path%") do @echo %i
but my output is C:\blabla1\bin C:\blabla2\bin C:\blabla3\bin C:\blabla4\bin . I would like to concat the carriage return, but I'm not able to do that.
Any suggestions? Thanks
p.s. I would like to achieve this within a single command line, avoiding to use a script saved in a separate .bat file