Prompt user to select device (from line)
问题 I'm trying to list the connected adb devices and prompt the user to select a line to deploy an APK to. So far I've tried: for %%i in (adb devices) do ( ECHO %%i ) But that won't work at all. Is there any way to capture the id of each adb device into variables? My goal if possible is to capture each id like: %line1=f2ea3410 From adb listing adb devices : f2ea3410 device f2fa3410 device So I can prompt the user the line (and not the id which is painful to type): @ECHO OFF set /p id="Enter Line: