Skip to content

Instantly share code, notes, and snippets.

@philippgitpush
Created February 4, 2025 14:23
Show Gist options
  • Select an option

  • Save philippgitpush/72e39b70b4dfff54c322f638bbcf1704 to your computer and use it in GitHub Desktop.

Select an option

Save philippgitpush/72e39b70b4dfff54c322f638bbcf1704 to your computer and use it in GitHub Desktop.
Pull / delete media from the Pico 4 HMD.
:: -- Pull --
@echo off
setlocal
set TARGET_DIR=%cd%
echo Pulling files from the device...
adb pull /sdcard/Movies/ScreenRecording "%TARGET_DIR%\ScreenRecording"
adb pull /sdcard/Pictures/Screenshots "%TARGET_DIR%\Screenshots"
echo Pull complete.
pause
:: -- Delete --
@echo off
setlocal
set TARGET_DIR=%cd%
echo Deleting files from the device...
adb shell rm -r /sdcard/Movies/ScreenRecording/*
adb shell rm -r /sdcard/Pictures/Screenshots/*
echo Deletion complete.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment