Created
July 25, 2018 02:21
-
-
Save inntran/b5aa58427a92e44689a70e9f1f7b9b12 to your computer and use it in GitHub Desktop.
Copy Windows spotlight wallpapers to a folder in C/D/E drive
This file contains hidden or 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
#!/bin/bash | |
# Steps | |
# 1. Install Linux subsystem | |
# 2. Install a Linux distro in Windows 10, e.g. Ubuntu | |
# 3. Create a symbolic link to your ContentDeliveryManager Assets directory | |
# yourname@YOURMACHINE:~$ ln -s /mnt/c/Users/_YOUR_WINDOWS_USERNAME_/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets spotlight-assets | |
# 4. Create a directory in your D drive, named "SpotlightPhotos" | |
# 5. Run this script from your home directory | |
cd spotlight-assets | |
file *|grep 1920x1080|cut -f1 -d:|xargs -L1 -IFILE bash -c 'cp -u -v FILE /mnt/d/SpotlightPhotos/$(date -r FILE +%Y%m%d-%H%M%S).jpg' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment