adb安装app到所有真机bat处理脚本, 其中有判断字符串是否非包含emulator开头的写法
@echo off
echo --------------------Install Real Device------------------------------------
echo Get devices
adb devices > devices.txt
type devices.txt
echo --------------------------------------------------------
for /f "skip=1 tokens=1 delims= " %%i in (devices.txt) do (
echo %%i | findstr "emulator" >nul || (
adb -s %%i install xxxx1.apk
adb -s %%i install xxxx2.apk
)
)
del devices.txt
echo --------------------------------------------------------
参考链接:https://blog.csdn.net/m0_59952100/article/details/128005183