Support for MOV, TGA, and other non EXIF files.

Started by Archive, May 12, 2010, 08:54:14 AM

Previous topic - Next topic

Archive

[Originally posted by bv on 2008-01-25 21:56:00-08]


Phil,

IF the EXIFTool can read and set the normal DOS file attributes such as directory, filename, FileModifyDate, Then I can use it to rename and move Non EXIF files the same way I do for the EXIF files. When I try, I get the typical "File Type Not Supported".

I wish you had a plain file switch.

Currently I created this windows batch file to rename and move my MOV files:

Code:
@echo off
Rem Change Filenames and move to date based directory.
Rem Run from Working / Source Directory, will perform the following
Rem Make archive and new working folders/directories
Rem copies original file to new filename format in the working folder
Rem moves the original file to the archive folder

Rem set Ext=-ext *.mov
set Ext=
Rem set files=-r .\ *
Rem set files=*.avi *.thm *.mov
set files=*.mov
set targetDir=Q:\Photos
set origDir=F:\Photos\Original
set OutFile=Rename-avi.cmd

Echo @Echo off >%OutFile%
echo Rem Build MakeDir Statements to make sure directory exists >>%OutFile%

exiftool -q -S -s -d "%targetDir%\%%Y_%%m_%%d" -p "mkdir $CreateDate" %Ext% %files% >>%OutFile%
exiftool -q -S -s -d "%origDir%\%%Y_%%m_%%d" -p "mkdir $CreateDate" %Ext% %files% >>%OutFile%

Echo Rem Build copy Statements for renamed files >>%OutFile%
exiftool -q -S -s -d "%targetDir%\%%Y_%%m_%%d\%%Y-%%m%%d-%%H%%M%%S_" -p "copy $filename $CreateDate${filename}" %Ext% %files% >>%OutFile%

Rem exiftool -q -S -s -d "%origDir%\%%Y_%%m_%%d\%%Y-%%m%%d-%%H%%M%%S_" -p "copy $filename $CreateDate${filename}" %Ext% %files% >>%OutFile%

Echo Rem Build move Statements for Original files >>%OutFile%
exiftool -q -S -s -d "%origDir%\%%Y_%%m_%%d" -p "move $filename $CreateDate" %Ext% %files% >>%OutFile%

goto Exit

:Exit

Archive

[Originally posted by exiftool on 2008-01-26 00:55:06-08]

Exiftool can be used to read/write "pseudo" tags to unrecognized
file types, but it seems that I have overlooked this feature when
copying tags.  I will fix this in the next release.  I assume you want
to do something like this:

Code:
exiftool -d FMT "-filename<filemodifydate" ANYFILE

which doesn't currently work, although the following commands do:

Code:
exiftool -d FMT -filemodifydate ANYFILE
 exiftool -filename=NEWNAME ANYFILE

- Phil