- Aug
- 2,314
- 111
Code:
_x64: 1
_admin: 1
_elevated: 1
TCC 26.01.40 x64 Windows 10 [Version 10.0.18362.778]
I want to obtain a single line from the history list.
I am using local history.
Code:
e:\utils>history /m | tail
182 : history
183 : history >> history.txt
184 : history /m
185 : help type
186 : tail | history /m
187 : echo %@history[185]
188 : history /m | *view
189 : npp test.btm
190 : history /m | tail
191 : subnet.btm
If I try to get line 185;
Code:
e:\utils>echo %@history[185]
cdd C:\Users\JOECAV~1\AppData\Local\Temp
If I try to get line 189;
Code:
e:\utils>echo %@history[189]
alias cd*
If I try to get the current line;
Code:
e:\utils>echo %@history[0]
If I try to get the current line and a specific word;
Code:
e:\utils>echo %@history[189,0]
189
e:\utils>echo %@history[189,1]
1
Not sure what I'm doing incorrectly, but assistance would be appreciated.
Joe