Search code examples
windowscmd

Print Windows %PATH% with every entry on new line


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...


Solution

  • 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)