我在使用adb shell搞清楚如何在多个Android设备上使用mkdir时遇到了麻烦。现在我的脚本一次只对1个设备有用。任何帮助将不胜感激。
@echo off
set androidPath="/sdcard"
set folder1="/folder1/"
set folder2="/folder2/"
set folder3="/folder3/"
set test="/test_folder/"
echo Creating folder1
adb shell "mkdir %androidPath%%folder1%"
echo Creating folder2
adb shell "mkdir %androidPath%%folder2%"
echo Creating folder3
adb shell "mkdir %androidPath%%folder3%"
答案 0 :(得分:0)
将adb shell
替换为adb -s <adb serial number> shell cmd
。你的脚本应该可以工作。