Link to home
Start Free TrialLog in
Avatar of Kachele
Kachele

asked on

Batch file to rename file based on field

I need to create a batch file that will rename all my photos (.jpg) by the date the picture was taken (this is a field in Windows Explorer).  The current file names vary but I want to sort the directory by the date the picture was taken and change the names to a common string followed by the sequence number.  e.g. if the folloing pictures exist:

pic035.jpg  taken 08/11/04 7:24am
pic032.jpg  taken 08/08/04 12:03pm
flower.jpg  taken 08/15/04 2:23pm

I woudl want to rename all the files to:
Aug_2.jpg
Aug_1.jpg
Aug_3.jpg

where Aug_ is a user defined string....
SOLUTION
Avatar of retoreto
retoreto

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dark_King
Dark_King

http://www.dirfile.com/freeware/rename-jpg-files.htm

"THE Rename" or "Sophisticated Rename" is Nice
Change .jpg file to file created
http://big.park.se/files/extra/exchange/jpgdate.zip

Ex..
jpgdate c:\temp

Rename all .jpg file in c:\temp
like apr_1.jpg

Test on bakup files first
jpegdate is a handy utility for digital camera owners, that allows to easily rename digital photos (jpg) based on the EXIF information that is included with nearly all digital cameras. You can rename each photo based on the date it was taken

http://djernaes.dk/download/jpegdate14.zip

JpegDate [/c] [/r] [/s] [/t:tag] <filename>
 /i : Don't copy or rename, but print all information
 /c : Copy instead of rename
 /r : Recursive in sub directories
 /s : Use name or tag as suffix instead of prefix
 /t : Use this tag for all files, instead of the file name
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial