- May
- 13,739
- 209
On Thu, 02 Jun 2011 08:26:04 -0400, rconn <> wrote:
|---Quote (Originally by Kachupp)---
|What "I'D" really like @execstr[] to return more than "first" line ...
|example exesctr[fc whatever,1]
|as an example - fc.exe returns the command parameters while the second
|line produces the result I want
|"FC: no differences encountered" -a- Plugin would work just as well
|---End Quote---
|
|@EXECSTR already supports an optional argument to specify the line you want.
And @EXECARRAY[] will allow you to collect several lines of a command's output.
|---Quote (Originally by Kachupp)---
|What "I'D" really like @execstr[] to return more than "first" line ...
|example exesctr[fc whatever,1]
|as an example - fc.exe returns the command parameters while the second
|line produces the result I want
|"FC: no differences encountered" -a- Plugin would work just as well
|---End Quote---
|
|@EXECSTR already supports an optional argument to specify the line you want.
And @EXECARRAY[] will allow you to collect several lines of a command's output.
Code:
v:\> setarray line[5]
v:\> echo %@execarray[line,dir /b *.txt] > NUL
v:\> for /l %l in (0,1,4) echo %line[%l]
123.txt
6412017366.txt
a.txt
abcdef.txt
array2file.txt