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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -