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.
how do i set each one to a separate variable?
testapp.exe -l
340e42e15fc02fb99e7caf66565d3c881081390c
4e8e93bd2a401c34e3d0d257de07af5d624521c6
the below will only work when the result is one device
for /f "tokens=1 " %%a in ('testapp.exe') do set DEVICE1=%%a
ideas?