ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: quotsi on July 30, 2010, 01:50:15 PM

Title: undo renaming?
Post by: quotsi on July 30, 2010, 01:50:15 PM
I have successful renamed my files (Win XP) with
C:\Programme\exiftool\exiftool "-filename<${CreateDate}_%8f.%e" -d %Y%m%d_%Hh%M H:\BilderBuff\Test\exiftest
and so I got such as
20030113_15h30_DSCN6888.JPG

And now I like to undo the rename process.
I have tried
C:\Programme\exiftool\exiftool "-filename<$%-8f.%e" H:\BilderBuff\Test\Sortierung2
and I got so as
$DSCN6888.JPG

Is it possible to get only the filename without the $ ?

Thank you for all proposals

Title: Re: undo renaming?
Post by: Phil Harvey on July 30, 2010, 02:19:27 PM
Sure.  Remove the '$' from the string you are copying to the Filename tag.

The '$' is used only to indicate a tag name in the string.

- Phil
Title: Re: undo renaming?
Post by: quotsi on July 30, 2010, 05:00:14 PM
Sorry, but it is no true (under XP)!
C:\Programme\exiftool\exiftool "-filename<%-8f.%e" H:\BilderBuff\Test\Sortierung2
results in
...
Warning: [minor] Possibly incorrect maker notes offsets (fix by -330?) - H:/BilderBuff/Test/Sortierung2/20030114_10h00_DSCN6911.JPG
   1 directories scanned
   0 image files updated
  24 image files unchanged

Sorry :(
Title: Re: undo renaming?
Post by: Phil Harvey on July 30, 2010, 06:01:28 PM
Odd.  You can ignore makrenote errors with -m, but I wouldn't have thought this would be a problem.

Oh, right.  You should be doing this:

C:\Programme\exiftool\exiftool "-filename=%-8f.%e" H:\BilderBuff\Test\Sortierung2

ie) use "=" instead of "<" since you aren't copying tag values.

- Phil
Title: Re: undo renaming?
Post by: quotsi on July 31, 2010, 04:20:00 AM
Yes, that is it! You are the best!
Thanks