需求说明
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