title: Batch File not exiting loop correctly?
body: <p>I am working on a batch file to gather the mac addresses of two of my subnets clients however for some reason my batch file is not ending the first loop correctly, so the second loop is not being executed and thus the rest of the script is not being executed. Any ideas on why this is happening?</p>
  
  <pre><code>for /L %%i in (1,1,254) do ping.bat 192.168.232 %%i
  for /L %%i in (1,1,254) do ping.bat 192.168.233 %%i
  REM Some other stuff goes on here but the second loop never gets executed
  </code></pre>
  
  <p>Thanks a lot in advance</p>
  
  <p><strong>EDIT:</strong> ping.bat contains simply this:</p>
  
  <pre><code>nbtstat -A %1.%2
  </code></pre>
  
  <p>To get the MAC address via NetBIOS</p>