Skip to content

Instantly share code, notes, and snippets.

@akavel
Last active January 24, 2021 20:04
Show Gist options
  • Save akavel/c2bf51e485676703528f6befea43781d to your computer and use it in GitHub Desktop.
Save akavel/c2bf51e485676703528f6befea43781d to your computer and use it in GitHub Desktop.
Fetch Windows 10 lock screen images
@echo off
setlocal
:: https://www.groovypost.com/howto/save-windows-10-spotlight-lock-screen-pictures/
:: https://stackoverflow.com/questions/7881035/checking-file-size-in-a-batch-script
set here=%CD%
cd /d %userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_*\LocalState\Assets
set minsize=200000
for %%F in (*.*) do (
if %%~zF GTR %minsize% (
echo %%F
if not exist %here%\%%F.jpg (
copy /b %%F %here%\%%F.jpg
) else (
echo ...exists
)
)
)
cd /d %here%
pause
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment