Skip to content

Instantly share code, notes, and snippets.

@zohead
Created August 21, 2017 06:19
Show Gist options
  • Save zohead/59e791c8a61d031439f4df4ebb531e98 to your computer and use it in GitHub Desktop.
Save zohead/59e791c8a61d031439f4df4ebb531e98 to your computer and use it in GitHub Desktop.
Export Windows 10 Spotlight images by WSL (Bash on Windows)
#!/bin/sh
[ -d test ] || mkdir test
ind=0
username=`whoami`
for i in `ls /mnt/c/Users/$username/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_*/LocalState/Assets/*`; do
cp $i test/$ind.jpg
ind=`expr $ind + 1`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment