FileSequence only returns -

Started by WHA1949, October 22, 2012, 02:53:13 PM

Previous topic - Next topic

WHA1949

I use XP with version 9.02, and want to extract the number of processed file. Using Tag $FileSequence I always get a - (dash).
How can I get a number which corresponds to the processed file.

My command line in a batch file is

"C:\Dokumente und Einstellungen\Kevin\Eigene Dateien\Downloads\exiftool-9.02\exiftool" -charset UTF8 -ext jpg -ext tif -q -f -p DirToXML.fmt %1 > %1\DirToXML.xml

the FMT is

#[HEAD]<?xml version="1.0" encoding="UTF-8"?>
#[HEAD]<directory name="unknown">
<file $FileSequence name="$FileName" headLine="$Headline" location="$Sub-Location" city="$City" country="$Country" dateCreated="$DateCreated" absolutePath="${Directory}/${FileName}" />
#[TAIL]</directory>


As output I get

<?xml version="1.0" encoding="UTF-8"?>
<directory name="unknown">
<file - name="1973_0600_0021920To1080.jpg" headLine="Blaue Moschee Istanbul"
....

Phil Harvey

Right.  That is because the FileSequence tag is not generated unless specifically requested, and I overlooked the -p option when checking to see if the tag was requested.

This will be fixed in ExifTool 9.04.

Thanks for pointing out this problem.

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