bat script for batch execution

To multiple phones at the same time a mass installation apk example:

 

Start bat

@echo off
setlocal enabledelayedexpansion
adb devices>nul
adb devices


for /f "skip=1" %%i in ('adb devices^|findstr device') do (

ping -n 1 127.0.0.1>nul
start  install.bat %%i
)

pause

 

install.bat

OFF @echo 
 

adb -s% 1   the wait - for - Device   


for %% i in (* .apk) do (    
    
    echo being installed: %% i   
    adb -s% 1  install  " %% i "   
)   

echo installed! 

pause  

Guess you like

Origin www.cnblogs.com/testerhome-yizhou2018/p/12048574.html