PowerShell script and batch script for saving photos updated by Windows Spotlight.
Includes:
-
WSDPkeeper.ps1
-
WSDPkeeper.bat
-
WSDPhotoUpdate.bat
-
Differentiating new photos in horizontal and vertical during processing, and then storing them separately
-
Repetition checking. (Only pulling new items)
-
Rename photos with format
{H|V}_Windows_Spotlight_{YYYY-MM-DD-hh-mm}_{nnnn}.jpg
Download the zip file and extract the scripts where you like. (I put them in C:\Users\{username}\Pictures
)
Then, execute the batch script WSDPkeeper.bat
or the PowerShell script WSDPkeeper.ps1
in PowerShell (Do need to set PowerShell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned).
The default keeping folders located in:
C:\Users\{username}\Saved Pictures\Horizontal <--for photos H_*.jpg
C:\Users\{username}\Saved Pictures\Vertical <--for photos V_*.jpg
The batch script include multi lines for executing PowerShell script optionally. You can comment the default line and select the suitable one.
Go the task properties --> Action tab --> Edit --> Fill up as below:
- Action: Start a program
- Program/script: path to your batch script e.g.
C:\Users\{username}\WSDPkeeper.bat
- Add arguments (optional): <if necessary - depending on your script>
- Start in (optional): Put the full path to your batch script location e.g.
C:\Users\{username}\
(Do not put quotes around Start In)
Then Click OK
It works fine for me. Good Luck!