title: batch file multiple results to seperate variables
body: <p>I have a .exe that prints the results of multiple devices connected to the PC. Each item is on a separate line, however, depending on what's connected the results can 1 to many devices.</p>
  
  <p>how do i set each one to a separate variable?</p>
  
  <pre><code>testapp.exe -l
  340e42e15fc02fb99e7caf66565d3c881081390c
  4e8e93bd2a401c34e3d0d257de07af5d624521c6
  </code></pre>
  
  <p>the below will only work when the result is one device</p>
  
  <pre><code>for /f "tokens=1 " %%a in ('testapp.exe') do set DEVICE1=%%a
  </code></pre>
  
  <p>ideas?</p>