RMD: Batch file renamer

Inane baanter or words of wisdom - you decide...
Post Reply
User avatar
schweigs
Baaa!
Baaa!
Posts: 112
Joined: Sat Oct 11, 2003 12:37 am 0
Location: london, uk

RMD: Batch file renamer

Post by schweigs »

Hello

I have been getting down to the exciting task of organising my photo collection which I then want to sync to my iphone.

The problem is that the iphone seems to display the photos in alphabetical order rather than by the date picture taken tag on the jpeg.

Just wondered if anybody knows of a good tool for automatically renaming my photo files incrementally according to the date picture taken tag. Maybe by numbering them 01-xx, 02 -xx, 03 - xx etc

thanks
User avatar
spinlizard
Baaaaa!
Baaaaa!
Posts: 1612
Joined: Mon Dec 09, 2002 10:09 pm 0
Location: Somewhere cosy

Re: RMD: Batch file renamer

Post by spinlizard »

Irfanview will (I think) do what you need. It has a batch rename tool which will let you import a batch of pictures then rename them according to a pattern that you define. I know it supports an incremental numbering system so that may work for you.
User avatar
Lester M Fong
Baaaaa!
Baaaaa!
Posts: 1481
Joined: Mon Apr 22, 2002 7:40 pm 0
Location: England
Contact:

Re: RMD: Batch file renamer

Post by Lester M Fong »

Paste this into Notepad, then change "C:\Photos" to the real path to your photos, save it with a .bat extension, then run it:

Code: Select all

setlocal ENABLEDELAYEDEXPANSION
cd "C:\Photos"
set count=1
set padcount=00000%count%
for /f "delims=" %%a in ('dir /b /o:d') do ren "%%a" "!padcount:~-5!_%%a"&set /a count=!count!+1&set padcount=00000!count!
This will rename them based on the datestamp of the file itself rather than the EXIF data or whatever, but hopefully that's close enough for you...
And every time I pick up the phone
It flashes up ‘Revenge’
User avatar
Cloudane
Baaaaaaa!
Baaaaaaa!
Posts: 7937
Joined: Wed Jun 15, 2005 6:05 pm 0
Location: VRchat

Re: RMD: Batch file renamer

Post by Cloudane »

Get a Ma..... hey, wait. It's even more difficult with those!

Lean Perl and grab a Bash prompt for Windows (Cedega?)?
User avatar
/morten
Baaaa!
Baaaa!
Posts: 848
Joined: Mon May 17, 2004 4:57 pm 0
Location: Denmark

Re: RMD: Batch file renamer

Post by /morten »

xnview (xnview.com) does that and also does batch processing. It's free provided you're not a commercial user.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: RMD: Batch file renamer

Post by gravy »

Cloudane wrote:Get a Ma..... hey, wait. It's even more difficult with those!

Lean Perl and grab a Bash prompt for Windows (Cedega?)?
I think you mean Cygwin

You do know that OS X ships with Bash and Perl installed? ;)
User avatar
Cloudane
Baaaaaaa!
Baaaaaaa!
Posts: 7937
Joined: Wed Jun 15, 2005 6:05 pm 0
Location: VRchat

Re: RMD: Batch file renamer

Post by Cloudane »

Cygwin. Yes. Surprised I managed to string even a reasonable sentence together to be honest! (Work it out from the timestamp)
Funny really, two sort-of similar words but one brings Unix stuff to Windows and the other brings Windows stuff to Unix.

Yeah. It is actually easier on a Mac natively, for those with the patience to learn Bash/Perl. For the rest of the world, there's a far better choice of batch renaming apps for Windows (just whack 'batch renamer freeware' into Google)
User avatar
schweigs
Baaa!
Baaa!
Posts: 112
Joined: Sat Oct 11, 2003 12:37 am 0
Location: london, uk

Re: RMD: Batch file renamer

Post by schweigs »

thanks to all who replied

irfanview does the job I'm after

cheers
Post Reply