我如何adb中拉了一个文件夹present的所有文件SD卡

我如何adb中拉了一个文件夹present的所有文件SD卡

本文介绍了我如何adb中拉了一个文件夹present的所有文件SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的SD卡作为文件夹:到/ mnt / SD卡/ Folder1中/ FOLDER2 / Folder3 / *。JPG

I have a folder in my SD Card as:/mnt/sdcard/Folder1/Folder2/Folder3/*.jpg

Folder1中和FOLDER2的名称保持不变和内部FOLDER2我有Folder3,4,5等..我想拉所有的JPEG文件,而所有文件利用亚行到我的计算机上的当前目录(还有更多)。

The name of Folder1 and Folder2 remains constant and inside Folder2 i have Folder3, 4, 5 and so on..i want to pull all the jpeg files rather all files (there are more) using adb to my current directory on the computer..

每个文件夹中都有的JPEG文件和其他文件的不同数量,然后我试图用这样的:

Every folder has different number of jpeg files and other files and i tried using this:

adb pull mnt/sdcard/Folder1/Folder2/Folder/*.jpg .

但它没有工作..那么uhmm我如何adb中拉的所有文件present在SD卡中的任何文件夹使用一个命令(单命令,因为每个文件夹都有不同数量的文件)

But it didnt work..So uhmm how do i adb pull all files present in any folder of SD Card with a single command (single command because each folder has different number of files)

推荐答案

目录中获取可在新的Andr​​oid工具。(我不知道从哪个版本,它增加了,但其工作的最新的ADT 21.1)

Directory pull is available on new android tools.( I don't know from which version it was added, but its working on latest ADT 21.1 )

adb pull /sdcard/Robotium-Screenshots
pull: building file list...
pull: /sdcard/Robotium-Screenshots/090313-110415.jpg -> ./090313-110415.jpg
pull: /sdcard/Robotium-Screenshots/090313-110412.jpg -> ./090313-110412.jpg
pull: /sdcard/Robotium-Screenshots/090313-110408.jpg -> ./090313-110408.jpg
pull: /sdcard/Robotium-Screenshots/090313-110406.jpg -> ./090313-110406.jpg
pull: /sdcard/Robotium-Screenshots/090313-110404.jpg -> ./090313-110404.jpg
5 files pulled. 0 files skipped.
61 KB/s (338736 bytes in 5.409s)

这篇关于我如何adb中拉了一个文件夹present的所有文件SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 12:28