Jump to content

Recommended Posts

Posted

Over the years, I have amassed several 1000s of photos that I have backed up from my iPhone. If memory serves me correctly iOS names them IMG_0001.jpg, IMG_0002.jpg, IMG_0003.jpg etc etc. Now, whenever I have updated my iOS I have always started afresh without restoring from backup. So, I would manually copy my photos over to my PC. This would mean that iOS would name my pictures starting from IMG_0001.jpg again. I have several 1000s of photos in folders across a folder struct like below:

 

C:\Other Files\Photos...

\2010

\2011

\2012

\2013

\2014

 

I'd like to get these images all in to one folder "C:\Other Files\Photos"

 

Would it be possible to do a script that would take the photos in folder 2010 and assuming there were 567 photos in that folder rename them to "0001.jpg", "0002.jpg" ... "0567.jpg" and then move on to 2011 and start from "0568.jpg" and so on for the whole folder structure? This is so that I can have all my photos in one folder, without fear of overwriting duplicates and so that I can copy them back to my iPhone Camera Roll and have them in dated order, with the newly taken photos starting at the end of the camera roll after the older ones.

Posted
Look at pfrank - it's very good, free file renaming software, which will allow you to create a regex script to drive the rename.
Posted

Just an idea, but what about renaming the photos with the date/time from the embedded EXIF data using EXIFTool? e.g.

 

@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET SCRIPTDIR=%~dp0
SET SCRIPTDIR=%SCRIPTDIR:~0,-1%

FOR %%i IN (*.jpg) DO "%SCRIPTDIR%\EXIFTOOL" -d "%%Y-%%m-%%d_%%H-%%M-%%S.jpg" "-FileName

  • Thanks 1
  • 2 weeks later...
Posted
Just an idea, but what about renaming the photos with the date/time from the embedded EXIF data using EXIFTool? e.g.

 

@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET SCRIPTDIR=%~dp0
SET SCRIPTDIR=%SCRIPTDIR:~0,-1%

FOR %%i IN (*.jpg) DO "%SCRIPTDIR%\EXIFTOOL" -d "%%Y-%%m-%%d_%%H-%%M-%%S.jpg" "-FileName

 

Thanks @Arthur. That worked perfectly!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...