Author Topic: Renaming -d %Y%m%d_%H%M%S_%f.%%e with strange effects  (Read 3748 times)

klemmleuchte

  • Jr. Member
  • **
  • Posts: 27
  • still a rookie
Renaming -d %Y%m%d_%H%M%S_%f.%%e with strange effects
« on: May 06, 2010, 06:13:59 PM »
Hi Phil,

ExifTool is great work and I slowly get warm with playing around on Windows 7 to find how it works for me.

Code: [Select]
exiftool -d %Y%m%d_%H%M%S_%%f.%%e "-FileName<CreateDate" DIR
or similar <DateTimeOriginal works for me fine from commandline.

I copied this string as command to make a button-command in my filemanager DOpus (similar Speed- or TotalCommander). The effect is, that the formatted Date_Time runs out of format. Every try "%d" is changed to DIR and the command gets an error, because the FileName isn't found anyway. I don't know what happens, tried several changes to -d and ' and ", but every time with the same strange effect.



Will you please look to the screenshot and give a hint what's to change... I'm tired of this problem and spending more time than 3 days reading and searching on your documents, FAQ and web... :( Didn't find anything about this.
   
Thankfull for helping, Eike /klemmleuchte
« Last Edit: May 06, 2010, 06:25:06 PM by klemmleuchte »

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 18370
    • ExifTool Home Page
Re: Renaming -d %Y%m%d_%H%M%S_%f.%%e with strange effects
« Reply #1 on: May 06, 2010, 07:32:02 PM »
Your command is fine.  Somehow DOpus is messing things up.  I know that in DOS batch files all percents need to be doubled, but I have no experience with DOpus so I don't know how to solve this problem.  You may do better asking this question in a DOpus forum.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

klemmleuchte

  • Jr. Member
  • **
  • Posts: 27
  • still a rookie
Re: Renaming -d %Y%m%d_%H%M%S_%f.%%e with strange effects
« Reply #2 on: May 07, 2010, 02:07:07 AM »
Thank you, Phil.
I doubled and tripled the percents without changes...
I will ask on DOpus resources.

Bye, Eike

klemmleuchte

  • Jr. Member
  • **
  • Posts: 27
  • still a rookie
Re: Renaming -d %Y%m%d_%H%M%S_%f.%%e with strange effects
« Reply #3 on: May 08, 2010, 08:15:08 AM »
Hi Phil,

my feedback to this problem:

You were right with your hint. The passed commandline NEEDS consistant doubled percents in the hole line:
Code: [Select]
exiftool -d "%%Y%%m%%d_%%H%%M%%S_%%%%f.%%%%e" "-FileName<CreateDate" DIR

Thanks for this welldone helpfull tool. It's great!
I get closer and closer...

Bye, Eike

If you like the DOpus-button for your DOpus-specialists (or delete...):
Code: [Select]
<?xml version="1.0"?>
<button backcol="none" display="both" textcol="none">
<label>Rename ALL by META</label>
<tip>Rename all files in DIR by META CreateDate </tip>
<icon1>C:\Windows\exiftool.exe,0</icon1>
<function type="batch">
<instruction>@nofilenamequoting</instruction>
<instruction>exiftool -d &quot;%%Y%%m%%d_%%H%%M%%S_%%%%f.%%%%e&quot; &quot;-FileName&lt;CreateDate&quot; {sourcepath$}</instruction>
</function>
</button>