Posted on 2008-01-28 23:11:40-08 by bv
How to copy a AVI file to 2 different locations

Hi Phil

I want to rename a Canon AVI file based on the "DateTimeOriginal" and move it to say Q:\Photos and take the original and move it to F:\Files\Original.

The Problem with the code below, it that the file no longer exists in Block 2 to move the original file as Block 1 already made it disappear. Is there anyway to force the file to write to target and leave source alone?

For non AVI files (JPG, CR2, THM, etc...), I add a -comment and other tags to Block 1 and that will force the new file to be renamed leaving the original intact. Since you do not support the writing of AVI files, that does not work. Any Suggestions?

This is the ARG file code:

-P -d Q:/Photos/%Y_%m_%d/%Y-%m%d-%H%M%S -filename<${DateTimeOriginal}_%3f-%.4f%-2c.%ue -execute -P -d F:/Photos/Original/%Y_%m_%d/ -FileName<${DateTimeOriginal}%f%-2c.%e -Execute
Direct Responses: 6963 | Write a response
Posted on 2008-01-29 00:19:56-08 by exiftool in response to 6962
Re: How to copy a AVI file to 2 different locations
ExifTool can not be used to copy unsupported file types. Even if it could, the -o option is not flexible enough to allow you to set the output filename as you want. In your case, I would use exiftool to write a command file (or batch file) that you could excute to perform the copy for you. Use the -p option to format the exiftool output in the form of the necessary commands, then pipe the output to a batch file and execute the batch file after exiftool runs.

- Phil
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.