Zoom7000 Posted June 9, 2014 Posted June 9, 2014 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.
clareq Posted June 9, 2014 Posted June 9, 2014 Look at pfrank - it's very good, free file renaming software, which will allow you to create a regex script to drive the rename.
Arthur Posted June 10, 2014 Posted June 10, 2014 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 1
Zoom7000 Posted June 24, 2014 Author Posted June 24, 2014 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now