undo renaming?

Started by quotsi, July 30, 2010, 01:50:15 PM

Previous topic - Next topic

quotsi

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


Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

quotsi

#2
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 :(

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

quotsi

Yes, that is it! You are the best!
Thanks