I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-02-06 05:24:36-08 by pdi in response to 4245
Re: Rename using path's last dirname as prefix

Phil,

Tricky it was, but so glad it was also possible. Many thanks for your time and your fast reply.

I used "%c" as a part of a DateTimeOriginal file naming scheme. With your help, the final command line is as follows:

exiftool -r "-filename<DateTimeOriginal" -d "%%-.1d_%y%m%d_%%.3c.%%e" "-directory=%d" dirname

This works like a charm, and lightning fast too :-)

Cheers,

pdi

Direct Responses: Write a response