Table of Contents
Toggle5 Useful Python Scripts to Automate Boring Windows Tasks
Some Windows tasks are just too repetitive to keep doing manually.
Sorting a messy Downloads folder. Renaming 50 files. Hunting for duplicates. Finding what’s eating your storage.
So I built and tested 5 small Python automations to handle those jobs instead.
You can download each script below and run it locally on Windows. No advanced Python knowledge is required.
Before running any automation on important files, test it on copied files first.
1. Automatically Organize a Messy Folder
A Downloads folder can go from clean to absolute chaos surprisingly fast.
This script automatically looks at file extensions and sorts supported files into:
Images
PDFs
Documents
Videos
Archives
Download
⬇️ Download File Organizer — file_organizer.py
How to Use It
Create a folder called:
Test-Downloads
Place it beside file_organizer.py and add some files you want to test.
Open that location in Command Prompt and run:
python file_organizer.py
The script creates the necessary category folders and moves recognized files into them automatically.
2. Rename Multiple Files in Seconds
Have 40 photos with useless names like IMG_4928.jpg?
This script automatically turns a folder full of files into a clean numbered sequence:
file_001.jpg
file_002.jpg
file_003.jpg
Download
⬇️ Download Bulk File Renamer — bulk_renamer.py
How to Use It
Create:
Test-Rename
Put the files you want to test inside and run:
python bulk_renamer.py
Want names such as vacation_001.jpg instead? Open the script and change:
prefix = "file"
to:
prefix = "vacation"
Important: Test this on copies first because the script changes the filenames.
3. Find Duplicate Files — Even With Different Names
This is probably my favorite of the five.
Imagine you have:
photo.jpg
old-photo-backup.jpg
Different names don’t necessarily mean different files.
This script calculates a SHA-256 hash from each file’s contents and identifies files containing identical data.
Download
⬇️ Download Duplicate File Finder — duplicate_finder.py
How to Use It
Create:
Test-Duplicates
Put your test files inside and run:
python duplicate_finder.py
You’ll get output similar to:
DUPLICATE FOUND!
Original : photo.jpg
Duplicate: old-photo-backup.jpg
The script doesn’t delete anything. It only identifies duplicates so you can decide what to do with them.
4. Find What’s Eating Your Storage
Storage disappearing and you have no idea where it went?
This script checks file sizes and ranks them from largest to smallest.
Download
⬇️ Download Large File Finder — large_file_finder.py
How to Use It
Create:
Test-Large-Files
Add the files you want to inspect and run:
python large_file_finder.py
You’ll get something like:
LARGEST FILES
--------------------------------------------------
video.mp4 824.32 MB
backup.zip 310.17 MB
document.pdf 18.42 MB
photo.jpg 4.81 MB
That makes it much easier to see where your storage is actually going.
5. Find Files You May Have Forgotten About
Downloads and old project folders can accumulate files for months.
This script finds files that haven’t been modified for 30 days or more.
Download
⬇️ Download Old File Finder — old_file_finder.py
How to Use It
Run:
python old_file_finder.py
It will report old files and their approximate age.
It does not automatically delete them.
Want to search for files older than 90 days instead?
Change:
days_old = 30
to:
days_old = 90
Which One Should You Try First?
If your folders are constantly messy, start with the File Organizer.
If storage is disappearing, try the Large File Finder and Duplicate Finder.
And if you have hundreds of badly named photos or documents, the Bulk Renamer can save a ridiculous amount of clicking.
All five scripts are intentionally small. They solve one problem without installing another giant Windows utility.
One More Free Tool
If the problem isn’t your files and your PC itself feels slow, I also built a Python tool that checks CPU, RAM, storage usage, and memory-heavy processes.
→ Try the Free Python PC Performance Checker
It can give you a quick idea of whether an obvious resource bottleneck is happening right now.