Cannot copy tag values from one tag to another

Started by awiklendt, May 27, 2015, 06:23:15 PM

Previous topic - Next topic

awiklendt

Hi,

I'm going nuts with this issue but i'm sure it's just my syntax. I am trying to copy the year from filecreatedate to the copyright tag in my files. however, no matter what adjustments to my syntax, the error "no file specified" is always there to greet me.

i am running exiftool commands from a batch file and have successfully altered tags this way but never in a tag copy scenario.

the command i'm using:

exiftool -overwrite_original -a -p -m -progress -ext .JPG  "-copyright<createdate" -d "Copyright %Y Agnieszka Wiklendt" "C:\Users\agnieszka\Pictures\__Devices\Olympus-OMD-EM10\EXIF_test"


Even if i use hardcode to one specific file, the code cannot 'find' it. if i simply change the copyright tag with a regular string, the command works, but i wanted to insert the year from createdate (i also tried filecreatedate). I cannot for the life of me see what i've done wrong. it's almost keystroke for keystroke identical to this post: https://exiftool.org/forum/index.php/topic,3174.msg14301.html#msg14301

Can anyone spot where i've gone wrong?? i've been working on this one thing for a couple of hours now! Can't stare at it any longer without asking for help :-S

Thanks,
Agnieszka.

StarGeek

I copied your command, changed the directory to a specific file and it ran fine.

c:\>exiftool -overwrite_original -a -p -m -progress -ext .JPG  "-copyright<createdate" -d "Copyright %Y Agnieszka Wiklendt" X:\!temp\test3.jpg
======== X:/!temp/test3.jpg [1/1]
    1 image files updated

c:\>exiftool -copyright X:\!temp\test3.jpg
Copyright                       : Copyright 2015 Agnieszka Wiklendt


Are you sure that there are Jpgs in the target directory?  That's the only thing I can come up with.  Note that if the extension is .JPEG, they will be skipped.

Also, I think you want to use -P in your command, not -p.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

awiklendt

Hi StarGeek thanks for your reply,

When i hardcode a specific file, the command still doesn't work for me.
When i use that same specific file to code just the string "Copyright Agnieszka Wiklendt" without trying to copy from anywhere, it works on that file.

See screenshot.


StarGeek

Sorry, I just noticed that you said you were running from a batch file.   The percent sign "%" needs to be doubled when run from a windows batch file.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

awiklendt

Hi StarGeek,

i JUST twigged onto this too. I was staring at the screenshot when i realised the command was truncated at the %Y - which is when i realised the batch file must be balking on the percent sign. as soon as i doubled the %%Y it worked!! I knew it would just be a basic syntax thing!

Thank goodness for that!

Thank you for your time. :-)

Agnieszka

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype