Renaming -d %Y%m%d_%H%M%S_%f.%%e with strange effects

Started by klemmleuchte, May 06, 2010, 06:13:59 PM

Previous topic - Next topic

klemmleuchte

Hi Phil,

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

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

Phil Harvey

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/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

klemmleuchte

Thank you, Phil.
I doubled and tripled the percents without changes...
I will ask on DOpus resources.

Bye, Eike

klemmleuchte

Hi Phil,

my feedback to this problem:

You were right with your hint. The passed commandline NEEDS consistant doubled percents in the hole line:
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...):

<?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>