Batch array call by variable -
Batch array call by variable -
i got problem batch file echo 2 array contents.
for /l %%i in (1,2,%n%) ( set /a next=%%i+1 echo !array[%%i]! echo !array[%next%]! //this doesn't work )
output:
_content_array echo off.
when turn echo on output is:
_content_array echo on.
_content_array perfect, works. 2nd phone call (!array[%next%]!) doesn't work, think failed call, tried out other calls never worked me.
thx time.
for /l %%i in (1,2,%n%) ( set /a next=%%i+1 echo !array[%%i]! %%n in (!next!) echo !array[%%n]! )
you may read total details solution @ this post.
arrays variables batch-file
Comments
Post a Comment