I have a task: print all entries of %PATH% variable on new line. For example:
C:\Program Files\
C:\Windows
C:\Windows\System32
and so on...
Solved: I used echo %path:;=&echo(%
Source: How do I view/see the PATH in a windows environment? (the original link is dead, now linking to WebArchive)