I use ExifTool to batch rename all of my pictures using the following two commands:
"-FileName<${Exif:Model}-(%%f).%%e"
-d %%Y%%m%%d-%%H%%M%%S-%%%%f.%%%%e "-FileName<DateTimeOriginal"
This gives me filenames such as:
20110711-144637-DMC-FZ28-(P1020103).JPG
and
20110711-145144-iPhone 4-(IMG_1004).JPG
I have been sent some of pictures taken with a Samsung S860 which has a Model tag of <KENOX S860 / Samsung S860>
I'm not sure if it is ExifTool (v8.60) itself or the Windows (7 64-bit) command shell which is doing it, but the first command is treating the /
as a directory change and gives an error when trying to execute:
Warning: Error creating directory for '<KENOX S860 / Samsung S860>-(SDC12529).JPG' - D:/Users/xxx/Desktop/ExifProcess/SDC12529.JPG
Error creating directory <KENOX S860
Is there any way to force ExifTool to escape the forward slash character?
I have tried the -ex
and -E
options which do encode the <
and >
but not the /
.
Is there any way of forcing ExifTool to not treat the /
as part of the path?
Below is the full process.bat
file that I use:
@Echo Off
MD D:\Users\xxx\Desktop\ExifProcess
COPY D:\Users\xxx\Pictures\Import\*.jpg D:\Users\xxx\Desktop\ExifProcess
"P:\Program Files (x86)\ExifTool\exiftool.exe" "-FileName<${Exif:Model}-(%%f).%%e" D:\Users\xxx\Desktop\ExifProcess\*.jpg
"P:\Program Files (x86)\ExifTool\exiftool.exe" -d %%Y%%m%%d-%%H%%M%%S-%%%%f.%%%%e "-FileName<DateTimeOriginal" D:\Users\xxx\Desktop\ExifProcess\*.jpg
Pause
Exif:Model
to a text file (2) loop through the text file replacing/
as e.g.-
(3.1) loop through the photo folder alphabetically again (3.2) rename files according to the modified text file – Jari Keinänen Jul 12 '11 at 11:29