Main Menu

Moving Listed Files

Started by fdproxy, October 17, 2013, 01:14:42 PM

Previous topic - Next topic

fdproxy

Is there a way to move files (http://www.exiftool.org/filename.html) using as input a file containing the full names of the files to be moved? For instance, "list.txt" contains:

D:\photos\1.jpg
C:\2.jpg


Thank you

Phil Harvey

Yes.

Use -@ list.txt instead of specifying the file and/or directory names on the command line.

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

fdproxy

That was fast!

How do I record the association between the old name and the new one (for undo)?  Is it possible?


Thank you.

Phil Harvey

If you add the -v option to the command then the old/new file names will be printed.  I would suggest piping this to save the output to a text file:

exiftool -@ list.txt ... -v > out.txt

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