Skip to content

Instantly share code, notes, and snippets.

@ddanielsantos
Created February 9, 2023 17:04
Show Gist options
  • Save ddanielsantos/b6c77ea1d27267a2bc112bf8da65cc56 to your computer and use it in GitHub Desktop.
Save ddanielsantos/b6c77ea1d27267a2bc112bf8da65cc56 to your computer and use it in GitHub Desktop.
# This script is meant to copy some files to a folder inside my sdcard
# it has some requirements:
# - adb installed (https://developer.android.com/studio/releases/platform-tools?hl=pt-br#downloads)
# - download and extract it, the .exe file will be inside, you can add this folder to
# the PATH variable
# - an android device with usb debug enabled
# Here, 3836-6631 its how adb recognizes my sdcard,
# if you want to use the internal storage, you can change to "emulated/0".
# You can discover more about your phone's file system with the
# "adb shell ls /storage/" command
$dest = "/storage/3836-6631/Backed_Vault"
$source = "C:/Users/renato.santos/Documents/Vault"
adb push $source $dest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment