Did you ever saw Windows desktop surface full with icons, temporary files? Looks quite messy, didn`t? And I find me confused when I need to find something there.
I created one solution I will share. From now I use it for more than 5 years.
Introduction
On my Windows desktop, I have directory "DailyNotes" which contains two subdirectories: Today and Past.
- Today - is for current day purposes.
- Past - goes all past content structured by date.
The process is very simple. I have created a task in Task Scheduler which triggers daily at 22:00. Task executes small PowerShell script which copies all files from Today directory to Past subdirectory with name yyyy.MM.dd
(format is easy to change in PowerShell script).
Create Powershell script
Script location is not very important, only remember the path.
Create Scheduled Task
First open Task Scheduler utility.
Choose in Actions panel Create Task... located in Task Scheduler Library section. And fill all fields.
The time when the task should be triggered you choose as you like.
- Program/Script:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
- Add arguments:
-ExecutionPolicy Bypass -File C:\...\Scripts\DailyNotes.ps1
here goes full path you placed your script
After creating task run it and look if Last run result is 0x0
.
Create a taskbar shortcut to Today directory
In my Windows taskbar, I have a direct shortcut to Today`s directory.
First, need to create Shortcut by clicking the left mouse click on desktop. Schortcut should point to Today directory.
Than this Shortcut you need to add to the taskbar.
Configure all Browsers download directory to Today
For me, it is very comfortable when all downloads from a browser go to Today`s directory.
Now we are done! Enjoy your clean desktop forever!
[eof]