- Dec
- 238
- 2
I hate having to examine the %path% the usual way -- cluttered, barely human-readable. To view it with only one path shown per line, I use this alias: pathlist=echo %=n %@replace[;,%=n ,%path]
This starts by replacing every ";" in the %path% with "%=n" (a "newline") followed by a single space. The first characters following "echo" are: newline + single space. The display looks like:
C:\> pathlist
C:\Perl\site\bin
C:\Perl\bin
C:\Program Files (x86)\AMD APP\bin\x86_64
C:\Program Files (x86)\AMD APP\bin\x86
C:\TakeCommand
C:\Windows\system32
C:\Windows
[etc.]
Apologies if something like this has already been posted in some other thread. (Edit: the leading spaces don't appear above because, I guess, the forum software "eats" them before posting a message.)
This starts by replacing every ";" in the %path% with "%=n" (a "newline") followed by a single space. The first characters following "echo" are: newline + single space. The display looks like:
C:\> pathlist
C:\Perl\site\bin
C:\Perl\bin
C:\Program Files (x86)\AMD APP\bin\x86_64
C:\Program Files (x86)\AMD APP\bin\x86
C:\TakeCommand
C:\Windows\system32
C:\Windows
[etc.]
Apologies if something like this has already been posted in some other thread. (Edit: the leading spaces don't appear above because, I guess, the forum software "eats" them before posting a message.)
Last edited: