only move all images from a directory to an other directory that exist ?

Started by chcoste, August 21, 2012, 12:18:45 PM

Previous topic - Next topic

chcoste

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

Phil Harvey

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
...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 ($).

chcoste

Thanks, Phil, could you give an example ? my script is also false...

Phil Harvey

There are many examples here and here.  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
...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 ($).