Using the windows command prompt, can I echo %path% and get the resulting paths on separate rows? Something like this but for windows:
echo $path | tr \':\'
Try:
($env:Path).Replace(';',"`n")
or
$env:path.split(";")
Fewer keystrokes using either the split operator or method
$env:Path -split ';' $env:Path.split(';')
this works for me (in a cmd window):
powershell -Command ($env:Path).split(';')