How can I rename/move unknown files?

Started by HansS713, October 02, 2010, 01:19:23 PM

Previous topic - Next topic

HansS713

I use ExifTool (as intended) to rename/move my *.jpg files (thanks for this useful tool). But there are also other files where I would do the same thing. If I only use the three writable "pseudo" tags (FileName, Directory and FileModifyDate), ExifTool could/should process any file, but this is not the case. E.g.:

exiftool "-FileName<FileModifyDate" -m -d %Y%m%d_%H%M%S_%%f.%%e test.txt

gives:
Error: Unknown file type - test.txt
    0 image files updated
    1 files weren't updated due to errors


Is there some trick to perform the rename in this case - if not could this be added in some future versions?

Phil Harvey

Good suggestion.  I will downgrade this error to a warning if you are copying system tags from an unknown file.  So you should be able to do this with ExifTool 8.33 when it is released.

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

HansS713