I have the same task as 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...
which is achievable by echo %path:;=&echo.%
as explained here
And I want to assign it to a command alias using DOSKEY
But the following script is failing for me
DOSKEY list=echo %path:;=&echo.%
Which just prints all of the paths while I'm defining the DOSKEY, and after that, when I try to invoke list
command, it just doesn't work.