I have created an array in batch script as:
set arr[1]=a
set arr[2]=b
set arr[3]=c
Now I want to pass this array as an argument to another batch file as follows:
call :processArr.bat arr
I need to do this because in actual the value of %%i in arr[%%i] is variable and it can be greater than 9 and with batch file only 9 arguments can be passed
Moreover its ultra essential that the entire array is passed to the batch file processArr.bat at once
Please help
call processArr.bat args. The colon is for calling labels within the same script, not for executing external scripts.