I wish to have the for loop in my batch file to iterate 2 arrays. The pseudo code in my mind is something like below:
for each i in array1
print i
print array2[x++]
array1 and array2 will have the same size.
Will I be able to achieve the same result in batch file? I currently have the following code.
for %%i in %APP_LIST1% DO (
%appcmd% add app /site.name:%siteName% /path:/%%i /physicalPath:"d:\Apps\%%i"
)
I would like to use %APP_LIST2% (aka array2) in the same for loop as well.
Help please!