Skip to content

Instantly share code, notes, and snippets.

@fei-ke
Created March 30, 2015 16:25
Show Gist options
  • Save fei-ke/99d1413d4083d034f345 to your computer and use it in GitHub Desktop.
Save fei-ke/99d1413d4083d034f345 to your computer and use it in GitHub Desktop.
windows bat file, support multiple devices 'adb' command
@echo off
for /f %%i in ('adb devices^|findstr /e "device"') do (
if "%1" == "shell" (
start cmd /k adb -s %%i %*
) else (
adb -s %%i %*
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment