Designed 2 Use...

Cheshire Web Development

07810 640 239

  • Home
  • About
  • App Development
  • Scripts
  • Basket
  • Contact
“GoPro Video Join & Compress — PowerShell Script” has been added to your basket. View basket
Organise Media by Date — PowerShell Script

Organise Media by Date — PowerShell Script

Free

Automatically sorts your photos, videos, and audio files into date-based subfolders (e.g. `20240315`) using each file’s “Media Created” metadata — the same date shown in Windows Explorer’s Details pane. Ideal for tidying up memory cards, camera dumps, or messy media folders.

Free download — if you find it useful, consider supporting development

 
Categories: PowerShell, Script
  • Description
  • Reviews (0)

Description

Automatically sorts your photos, videos, and audio files into date-based subfolders (e.g. `20240315`) using each file’s “Media Created” metadata — the same date shown in Windows Explorer’s Details pane. Ideal for tidying up memory cards, camera dumps, or messy media folders.

Features

  • Reads the Media Created metadata date from files (falls back to Last Modified if unavailable)
  • Supports a wide range of formats: video (MP4, MOV, MKV, etc.), photos (JPG, PNG, RAW formats from Canon, Nikon, Sony, Fujifilm, and more), and audio (MP3, FLAC, WAV, etc.)
  • Creates date-stamped subfolders in `YYYYMMDD` format
  • Copies files by default — use `-Move` to move them instead
  • `-WhatIf` flag lets you preview what would happen without making changes
  • `-Recurse` flag to include files in subfolders
  • Handles duplicate filenames automatically
  • Operates on the current working directory — store the script anywhere and call it from inside the folder you want to organise

Usage

Navigate to your media folder, then run the script

cd "D:\Footage\2024"
organise-media.ps1

Move files instead of copying

organise-media.ps1 -Move

Preview changes without doing anything

organise-media.ps1 -Move -WhatIf

Include files in subfolders

organise-media.ps1 -Recurse -Move

Requirements

  • Windows with PowerShell 5.1 or later (included with Windows 10/11)
  • No additional software needed — uses built-in Windows Shell COM objects to read metadata

Running PowerShell Scripts

If you haven’t run PowerShell scripts before, you may need to allow it once. Open PowerShell as Administrator and run:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Then navigate to the folder containing the script and run it.

Adding the Script to Your PATH (Optional)

For convenience, you can add the folder containing the script to your system PATH so you can run it from any directory:

  1. Press Win + S and search for “Environment Variables”
  2. Click “Edit the system environment variables”
  3. Click Environment Variables at the bottom
  4. Under User variables, select Path and click Edit
  5. Click New and paste the full path to the folder where you saved the script (e.g. `C:\Scripts`)
  6. Click OK on all dialogs
  7. Restart any open terminal windows

You can now run `organise-media.ps1` from anywhere without navigating to the script’s folder first.

Free download — if you find it useful, consider supporting development

 

 

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Related products

  • GoPro Video Join & Compress — PowerShell Script

    GoPro Video Join & Compress — PowerShell Script

    Free
    Add to basket
  • QR Code Generator — PowerShell Script

    QR Code Generator — PowerShell Script

    Free
    Add to basket
  • Convert PNG to WebP — PowerShell Script

    Convert PNG to WebP — PowerShell Script

    Free
    Add to basket
  • Batch Resize & Convert to WebP — PowerShell Script

    Batch Resize & Convert to WebP — PowerShell Script

    Free
    Add to basket

Contact me on 07810 640 239 or on [email protected]

© Designed 2 Use a web development company based in Cheshire, UK
Part of The John Hulme Partnership Ltd

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

Cookie Policy

More information about our Cookie Policy

Powered by  GDPR Cookie Compliance