/FilesRename

A simple script that renames a group of files to their creation date. Ex. "IMG_1234.jpg" -> "2016-01-28 20.17.50.jpg"

Primary LanguageJavaScriptMIT LicenseMIT

Files Rename

A simple script that renames a group of files to their file's creation date. Handy for retaining the date you took a photo (for example), and makes them easy to sort.
Ex) "IMG_1234.jpg" -> "2016-01-28 20.17.50.jpg"

Setup

  1. Install the latest LTS version of NodeJS from https://nodejs.org/en/
  2. If using a terminal to run it, run npm install

How to run it

  1. Put all your photos that you want to rename in the "in" folder. They will be copied into the "out" folder with their new names.
  2. A couple options for running the script:
  3. On Windows: right-click run.ps1 and select "Run with PowerShell"
  4. On Windows/Mac: open up a terminal, and run grunt.
    • You can optional add an "offset" param to change the time in milliseconds. Ex) grunt --offset="3600000" (adds an hour onto each photo)
  5. All your renamed files should now be in the "out" folder.
    Note: they are just copies.