title: Operate multiple devices using ADB commands
body: <p>I'd like to assign the output of adb to multiple variables so multiple devices can be controlled at once.</p>
  <pre><code> adb devices
  </code></pre>
  <p>then CMD will display</p>
  <p>List of devices attached
  xxyyzz       device
  aabbccdd     device</p>
  <p>I'd like to assign xxyyzz to a and aabbccdd to b.
  I managed to do it for one device but not multiple using the following code:</p>
  <pre><code>@echo off
  FOR /F &quot;tokens=* USEBACKQ&quot; %%F IN (`adb devices`) DO (
  SET SN=%%F
  )
  set SN=%SN: =%
  set SN=%SN:device=%
  echo %SN%
  pause
  </code></pre>
  <p>Thanks.</p>