Greetings,
I'm totally stuck here - I want to rename all my raw files (.ARW) and there corrosponding sidecar files (.ARW.dop), but not all files have sidecar files.
Here is the sample dir Output:
21.07.2017 14:06 8.242.432 exiftool.exe
24.07.2017 16:51 25.395.200 _DSC4733.ARW
24.07.2017 16:53 25.296.896 _DSC4734.ARW
07.08.2017 14:49 7.811 _DSC4734.ARW.dop
24.07.2017 16:54 25.198.592 _DSC4736.ARW
07.08.2017 14:49 7.791 _DSC4736.ARW.dop
Here's my current approach:
-ext ARW (only check .ARW files)
-tagsfromfile "%d%f.ARW (use metadate from this file)
-srcfile %d%f.ARW.dop (process the sidecar file as well, if any)
exiftool -v -ext ARW -tagsfromfile "%d%f.ARW" -d "IMG_%Y%m%d%H%M%S.%%e" "-filename<CreateDate" -srcfile %d%f.ARW.dop .
Unfortunally this does not work and I have no clue why. Result:
Source file ./_DSC4733.ARW.dop does not exist
======== ./_DSC4733.ARW.dop
Setting new values from ./_DSC4733.ARW
'./_DSC4733.ARW.dop' --> './IMG_20170724165107.ARW'
Error: File not found - ./_DSC4733.ARW.dop
======== ./_DSC4734.ARW.dop
Setting new values from ./_DSC4734.ARW
'./_DSC4734.ARW.dop' --> './IMG_20170724165303.ARW'
======== ./_DSC4736.ARW.dop
Setting new values from ./_DSC4736.ARW
'./_DSC4736.ARW.dop' --> './IMG_20170724165453.ARW'
1 directories scanned
2 image files updated
1 files weren't updated due to errors
Please point me to the right direction...
regards,
Michael
Hi Michael,
What you are doing will work, but you should set -d "IMG_%Y%m%d%H%M%S.%%e.dop" for this command to preserve the .dop extension.
The %e represents the extension of the specified FILE, which in this case is ARW.
After this, you will need to run a second command to rename the ARW files.
- Phil
Hi Phil,
great - works like a charm!
regards,
Michael