Skip to content

Instantly share code, notes, and snippets.

@FacuM
Created January 8, 2017 02:52
Show Gist options
  • Save FacuM/69a9fafa6e8ff2877eb39beb47cfd234 to your computer and use it in GitHub Desktop.
Save FacuM/69a9fafa6e8ff2877eb39beb47cfd234 to your computer and use it in GitHub Desktop.
Take screenshots and download to your PC, then, remove them from the internal memory or sdcard.
@echo off
set NUMFILE=1
:1
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
move screen.png screen%NUMFILE%.png
set /a NUMFILE=%NUMFILE%+1
echo Screenshot taken.
pause
goto 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment