Why does this lose the Directory field?

Started by terrypin, March 22, 2013, 05:48:39 AM

Previous topic - Next topic

terrypin

Running this in the current directory works as expected, writing a text file for all images.
exiftool -T -directory -filename -datetimeoriginal -comment -r "C:\Docs\My Pictures\PHOTOS\Tests" > out.txt

I then tried reducing the length of the command to a minimum. Intuitively it seemed that running it in the current directory meant that I did not need to enter the directory name after the '-r'. But it did not then show the directory, replacing it instead with '.' in each line. Why? More important, can I somehow achieve what I described please?
exiftool -T -directory -filename -datetimeoriginal -comment -r . > out.txt

--
Terry, East Grinstead, UK


Phil Harvey

Hi Terry,

The Directory tag reported by ExifTool is based on the path you specify.  If you want it to report a full path, then you need to specify a full path on the command line.  There is no other way.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

terrypin

OK, thanks Phil, understood.

Terry, East Grinstead, UK