[摘]BAT脚本如何自动执行 adb shell 以后的命令
需求说明
BAT脚本中执行adb shell 命令后,需要获取其返回的结果。
adb shell ps | grep com.125la.test
我想返回打印的值
参考代码
@echo off echo su > temp.txt echo 其它命令 >> temp.txt adb shell < temp.txt del temp.txt
来源
相关文章
暂无评论...
BAT脚本中执行adb shell 命令后,需要获取其返回的结果。
adb shell ps | grep com.125la.test
我想返回打印的值
@echo off echo su > temp.txt echo 其它命令 >> temp.txt adb shell < temp.txt del temp.txt