How to passing in array parameter in windows batch?
<p>I'm trying to run this command in batch file:</p>

<pre><code>wmic nicconfig where macaddress=somemacaddr call SetDNSServerSearchOrder (an array paramter)
</code></pre>

<p>For example:</p>

<pre><code>set dnslist[1]="172.12.3.1"
set dnslist[2]="222.123.2.1"
...
set dnslist[x]="135.132.1.2"
</code></pre>

<p>We don't know the <code>dnslist</code> size before running the batch.
How could we passing the <code>dnslist</code> to <code>SetDNSServerSearchOrder</code> directly?</p>