Take Command / TCC Help v. 13.03
@EXECARRAYNot in LE
Hide Navigation Pane
@EXECARRAYNot in LE
Previous topic Next topic No directory for this topic No expanding text in this topic  
@EXECARRAYNot in LE
Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

@EXECARRAY[array,command] : Execute the specified command and store the resulting lines in the specified array variable. The array must be one-dimensional.

 

You must define the array before running @EXECARRAY.  For example:

 

setarray aresult[10]

echo %@execarray[aresult,dir /u] >& nul

 

@EXECARRAY will read the number of lines specified in the array size definition, or the number of lines in the command output (whichever is less). @EXECARRAY returns the return value of the command.

 

The number of lines stored in the array is saved in the _EXECARRAY internal variable.

 

Comments (...)