ExifTool Forum

ExifTool => Newbies => Topic started by: chcoste on August 21, 2012, 12:18:45 PM

Title: only move all images from a directory to an other directory that exist ?
Post by: chcoste on August 21, 2012, 12:18:45 PM
Hello,
is it possible to only move (or copy i think with -o) all images from a directory to an other directory when this directory (traget) exist ?
is it possible with an usb at the root to an other usb ?
Thanks
Title: Re: only move all images from a directory to an other directory that exist ?
Post by: Phil Harvey on August 21, 2012, 12:21:29 PM
Yes.  Many people use exiftool to import photos from a memory card.  The target directory doesn't need to exist -- exiftool will create it if necessary.  This is useful because ExifTool allows you to define the target file and/or directory name based on the meta information in each image.

- Phil
Title: Re: only move all images from a directory to an other directory that exist ?
Post by: chcoste on August 21, 2012, 12:28:30 PM
Thanks, Phil, could you give an example ? my script is also false...
Title: Re: only move all images from a directory to an other directory that exist ?
Post by: Phil Harvey on August 21, 2012, 12:37:36 PM
There are many examples here (https://exiftool.org/exiftool_pod.html#renaming_examples) and here (https://exiftool.org/filename.html).  Just remember to add -o dummy/ if you aren't already using the -o option and you want to copy the files instead of move them.

- Phil
Title: Re: only move all images from a directory to an other directory that exist ?
Post by: chcoste on August 21, 2012, 12:41:14 PM
Thanks