- May
- 13,450
- 193
I created an alias thus:
ALIAS shows:
That's really two lines ... OK, the alias works.
But SHRALIAS.EXE saves it like this (from notepad).
It doesn't work when reloaded.
1. a newline is missing
2. two ^s need to be there (^^$) when it's loaded and the saving process seems to have done away with one of them.
[I still have the code for the saving routine that was used many years ago.]
Code:
alias tl=`(tasklist |! egrep -v "Total|processes|^^$" |! sort -f -b --key=2,2 |! tee %temp\tl.tmp & echo ----^n %@lines[%temp\tl.tmp] & del /q %temp\tl.tmp)`
Code:
v:\> alias tl
(tasklist |! egrep -v "Total|processes|^$" |! sort -f -b --key=2,2 |! tee %temp\tl.tmp & echo ----
%@lines[%temp\tl.tmp] & del /q %temp\tl.tmp)
That's really two lines ... OK, the alias works.
But SHRALIAS.EXE saves it like this (from notepad).
It doesn't work when reloaded.
1. a newline is missing
2. two ^s need to be there (^^$) when it's loaded and the saving process seems to have done away with one of them.
[I still have the code for the saving routine that was used many years ago.]