Time stamp renaming for photos with same time

D

DarrellSmith

I have about 6000 digital pictures stored from all the different
digi-cams I have owned in the past 5 years. I would to batch rename
them using a single file name convention that includes time and date.
This is the easiest way for me to catalog, manage and view them but
there are some pictures that have the same date and time stamp because
my Nikon D70 shoots multiple frames per second.

This is similiar to what I need the file name to look like...

year_month_day_hour_minute_second

Is there a simple tool that will be able to deal with picture files
that have the same time stamp?

Any suggestions would be appreciate.

Thanks
Paul
 
B

baygross

setlocal enabledelayedexpansion
echo off
cd %userprofile%\my documents\my pictures\

set count=
for /f "skip=5 tokens=1,2,4,*" %%a in ('dir /s *.jpg') do (
for /f "tokens=1,2,3 delims=/" %%x in ("%%a") do (
set day=%%y
set month=%%x
set year=%%z
)
for /f "delims=:" %%m in ("%%b") do (
set time1=%%m
set time2=%%n
)
:loop
if exist "!year!/!month!/!day!_!time!!count!.jpg" (
if "!count!"=="" set count=0
set /a count+=1
goto loop
)
rename "%%d" "!year!_!month!_!day!_!time1!_!time2!_!count!.jpg"
set count=
)

***********************************************************
IF you put this in a .bat file, and run it from the root directory of
the pictures, it will take each picture and rename it as you wish,
however, seconds will not be taken into account. Instead, it will just
do 05_02_25_11_34_.jpg
and then start adding numbers to the end eg: 05_02_25_11_34_1
it should work for XP
-BG
 
D

Dave D

DarrellSmith said:
I have about 6000 digital pictures stored from all the different
digi-cams I have owned in the past 5 years. I would to batch rename
them using a single file name convention that includes time and date.
This is the easiest way for me to catalog, manage and view them but
there are some pictures that have the same date and time stamp because
my Nikon D70 shoots multiple frames per second.

This is similiar to what I need the file name to look like...

year_month_day_hour_minute_second

Is there a simple tool that will be able to deal with picture files
that have the same time stamp?

Any suggestions would be appreciate.

Thanks
Paul

I use Siren Renamer it uses the exif information or you can set it up to
suit yourself: www.nonags.com/nonags/fileren.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top