Problem copying files

Started by berliner_ffm, July 08, 2020, 04:08:58 PM

Previous topic - Next topic

berliner_ffm

Hi,
I am having problem coping a file. I am using an ARG-file for my statement. I am changing the directory tag but still I want to copy the file and not move it.
This is my example ARG-File:

C:\Users\jens\Documents\50_EXIFTOOL\TestGPS\Angkor-050682.dng
-o
dummy
-directory<%d\${Rating}


with this the file is copied (good), but in the new location the filename is changed to "dummy" (not so good).
If I put "-o dummy" after the directory tag, the file is moved and the "-o"-Tag seems to be ignored.

What am I missing here?
PS: I am not using the filename tag because I have two options in my script to change filename and directory independently.
Thanks for your help!

StarGeek

Quote from: berliner_ffm on July 08, 2020, 04:08:58 PM
with this the file is copied (good), but in the new location the filename is changed to "dummy" (not so good)

From the docs on the -o (Outfile) option
   The output file is taken to be a directory name if it already exists as a directory or if the name ends with '/'.

In this case dummy doesn't exist as a directory already or end with a slash so it's treated as a filename.
Change
-o
dummy

to
-o
.

or
-o
dummy/


Whichever you find easier to read.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

berliner_ffm

Great!! Thats working! Thank you for your quick response!