tool
MyDesktopOrganizer

MyDesktopOrganizer is a manual file sorter that runs by itself. You tell it once where each kind of file belongs (PDFs go here, spreadsheets go there), and it sweeps your desktop on a weekly schedule. Whatever has been sitting around long enough gets filed away. Anything you're still working on stays where it is.
Why it exists
Desktops rot. Files land there "just for now" and stay for months. I wrote the first version quickly a while back to make desktop cleanup something I set once and stop thinking about. Version 1.1 fixes the rough edges from that first pass and gives it the same look as my other tools: it no longer crashes when the archive folder can't be created, it never overwrites a file, and it tells you what it did.
What it does
- Extension rules: map one or more extensions to a folder, for example
pdf; docxto your Documents folder. Spaces, dots and*.prefixes are all fine. Double-click a rule to edit it, or right-click it to edit, remove or open its folder. Long paths under your user folder show as~\..., and the full path appears on hover. - Leaves recent work alone: it only moves files last changed before the Sunday of the week before last. If it runs on a Monday, everything from roughly the past eight days stays put.
- Dated weekly archive: in copy mode, a copy of each moved file also goes into a weekly folder named from a template like
Desktop - {yyyy-MM-dd}. The date is filled in for you, you can type your own template, and the window shows this week's folder name as you type. - Copy or shortcut: link mode drops a shortcut into the weekly folder instead of a copy, so the archive shows what was filed that week without duplicating anything.
- Never overwrites: if
Report.pdfalready exists in the destination, the new one is saved asReport (2).pdf. - Keeps going when something's missing: if the archive folder can't be created, say on a drive the PC doesn't have, it still sorts your files and notes the problem. A missing destination folder gets created.
- Run it now or on a schedule: Run Cleanup Now sweeps right away and tells you the cutoff date before you click. Weekly schedule sets up a weekly Windows Task Scheduler job (Mondays at 10 AM by default) and opens it so you can change the timing.
- A log you can read: every run lists what moved, where it went, and anything that failed. The result shows in the status bar, with an Open log link next to it.
Under the hood
This is the core of each sweep. Every file that matches a rule and is old enough goes through these three steps:
// Copies mode: archive a copy into the weekly folder first.
if (weeklyPath != null && !createLinks)
File.Copy(file, GetUniquePath(weeklyPath, fileName));
// Always move the original into its type folder (never overwrite).
string movedTo = GetUniquePath(rule.FolderPath, fileName);
File.Move(file, movedTo);
// Links mode: leave a shortcut in the weekly folder instead of a copy.
if (weeklyPath != null && createLinks)
CreateShortcut(weeklyPath, Path.GetFileName(movedTo),
$"Shortcut to {Path.GetFileName(movedTo)}", movedTo);
GetUniquePath is what stops it from overwriting anything. This one adds a number to the name for duplicate files just like Windows does. Each file runs inside its own try/catch. If one file is locked, it gets logged and the sweep moves on to the next one.
Rules and preferences are plain text files in your AppData folder, so they're easy to read and back up. The rules file is read line by line on purpose. A standard INI parser would treat ; as the start of a comment, and therefore a rule like .pdf;.docx would get cut short.
Get it
Built for Windows with .NET Framework 4.7.2, no installer. The zip has the app plus the Task Scheduler libraries it uses for the schedule editor. Unzip it anywhere, add a rule or two, and click Run Cleanup Now.
← back to tools