

I also researched a bunch of options to remove duplicate files based on the file content (i.e. You can change that by using the -format parameter, which uses the standard time time format strings found here: Custom date and time format strings Remove Duplicate Files If different then it will move all files to the new location.īy default it uses the following folder structure to move folders to: "yyyy/yyyy_MM/yyyy_MM_dd" If the same then it will rename in place. The source and dest can be the same directory or different directories. \PhotoOrganizer.ps1 -source "P:\_media\Photos" -dest "P:\_media\Photos" Open PowerShell, I’m using PowerShell 7.1.Moves the file from the source directory to the destination directory.

If the destination directory already has a file with the same name, then it renames the file.If the source file and destination file have the exact same path, then it skips that file.If it doesn’t, then it finds all properties that have “date” or “created” in them and uses the oldest date.If file has EXIF Data Taken, then it uses that.Loops through each file in the source directory looking for a date to use.I scoured the internet looking for apps and tools to help me do this and I tried a bunch of them, but none of them supported getting the EXIF “Date Taken” date and other dates from all the various formats. I wanted to get them organized in folders by date taken like so: They were all stored on my hard drive, but in random folders with random names. Photos from various phones and cameras - all with many different formats, JPEG, RAW, PNG, etc. I recently decided to organize all of my photos from the last 20 years.
