A thread · 9 notes · Script Library
File wrangling.
Moving, archiving, comparing and organizing big piles of files without losing any.
- 1
Flatten a Messy Media Library into A-Z Bucket Folders
A PowerShell script that sorts every show and movie in a folder into flat A-Z buckets, skips anything that would collide, and dry-runs honestly.
- 2
Zip Up Folders Nobody Has Touched in Months
Find project folders that haven't changed in N days, zip each one to an archive location with the date of its last change, verify it, and optionally clear out the original.
- 3
Move a List of Folders to a New Drive with PowerShell and Robocopy
Hand a list of folders from several drives to robocopy in one go, keep their structure on the new drive, catch name collisions before anything moves, and get a log per folder.
- 4
Check Whether Two Files (or Two Folders) Are Really Identical
Compare files, whole folder trees, or a download against its published checksum with Get-FileHash, and get back a clear Match or Different for every file.
- 5
Take Control of Explorer's Preview Pane with PowerShell
List the preview handlers installed on a PC, see which one each file type uses, and point extensions like .log, .ps1 or .json at the handler you want.
- 6
Build a Folder Structure from a Text Outline with PowerShell
Write the folders you want as an indented outline, or paste the output of tree, and create the whole structure in one go without moving a single file.
- 7
Batch-Convert a Folder of JPG and PNG Images to WebP
Shrink a folder of photos or screenshots to WebP with cwebp or NConvert, keep the originals unless you say otherwise, and see how much each file saved.
- 8
See What's in a Folder Tree, with File Counts and Sizes
Walk a folder once and get every subfolder's file count and total size in tree order, ready to sort, filter or save as a CSV.
- 9
Sort a Messy Downloads Folder into Folders by File Type
Move every loose file in a folder into a category subfolder by extension, clear out stale partial downloads and empty folders, and preview all of it with -WhatIf first.