Last active
January 24, 2021 20:04
-
-
Save akavel/c2bf51e485676703528f6befea43781d to your computer and use it in GitHub Desktop.
Fetch Windows 10 lock screen images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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