Skip to content

Instantly share code, notes, and snippets.

@shunia
Created September 27, 2019 15:41
Show Gist options
  • Save shunia/84851cc2ac1fc23eff9ba61e36bc1d29 to your computer and use it in GitHub Desktop.
Save shunia/84851cc2ac1fc23eff9ba61e36bc1d29 to your computer and use it in GitHub Desktop.
adb push multiple files at once

Parameters

The parameters can be replaced with the value you wanted.

  • targetFolder - target folder of you device under your sdcard, or just leave empty to target the root folder(not recommended)
  • fileExt - it's possible to use extension names to filter files, png,mkv,txt,etc.

Windows

for %f in (*.fileExt) do adb push %f /sdcard/targetFolder

GNU/LINUX

for f in *.fileExt; do adb push $f /sdcard/targetFolder; done
@idhirandar
Copy link

is there any way to copy multiple dir at once.

@mioscape
Copy link

is there any way to copy multiple dir at once.

Just drag the files/dir to your terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment