adb pull multiple files

后端 未结 12 1452
挽巷
挽巷 2020-12-04 07:28

What is the best way to pull multiple files using

adb pull

I have on my /sdcard/ 25 files with following name:



        
12条回答
  •  醉酒成梦
    2020-12-04 07:59

    I have created this for Windows boxes, It is very useful to transfer files using wildcards without mounting the filesystem. You can include this script somewhere in your path env.

    adbpull.bat

    @echo off
    setlocal enabledelayedexpansion
    if %1.==. (
        echo Wilcard parameter is required.
        goto end
    )
    for /F "tokens=* USEBACKQ" %%F in (`adb shell ls %1`) do (
        set text=%%F
        set mfile=!text:~0,-1!
        adb pull "!mfile!"
    )
    :end
    endlocal
    

    Example: adbpull /sdcard/DCIM/Camera/IMG_2016*

提交回复
热议问题