Fullpath and createdate

Started by schlemiel29, September 07, 2010, 07:42:47 AM

Previous topic - Next topic

schlemiel29

Hi,
I want to get a simple list of the full filename and the created date. I get it in one row with

exiftool -filename -createdate -q -t -s -S .

but without the folder. if I add "-Directory" it works fine too.

But I want the complete path in one field, so I combine filename and folder with

$Directory/$filename

But in this case it seems, that I have to use -p option for this and every following field, e.g.

exiftool -p $Directory/$filename -p $createdate -q -r -f .

But then the rows are splittet in two rows. What did I wrong?
Best regards
Dirk

Phil Harvey

Hi Dirk,

Try this:

exiftool -p "$Directory/$filename<tab>$createdate" -q -r -f .

This may work if you are in Windows.  In other shells, you will have to use single quotes instead of double quotes, and depending on the shell you may not be able to add a tab character very easily.

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

schlemiel29

Hi Phil,

yes, it works, except I don't get the tab inserted. I'm working with XP (DOS-Shell), but I tried a lot of ways I found in the net. Is there a code like \n in C for describing tab in the command string?
Thanks in advance
Dirk

Phil Harvey

Hi Dirk,

I don't know the subtleties of the DOS command shell, but luckily the -p option supports reading from an input text file (ie. -p my_format.txt), so the problem can be shifted to getting a tab into a text file with your favourite word processor.

Of course, there are other options too, like using commas instead of tabs...

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

schlemiel29

Hi Phil,
thank you very much, that's a possible way.
Dirk