ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: schlemiel29 on September 07, 2010, 07:42:47 AM

Title: Fullpath and createdate
Post by: schlemiel29 on September 07, 2010, 07:42:47 AM
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
Title: Re: Fullpath and createdate
Post by: Phil Harvey on September 07, 2010, 07:58:55 AM
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
Title: Re: Fullpath and createdate
Post by: schlemiel29 on September 07, 2010, 08:21:36 AM
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
Title: Re: Fullpath and createdate
Post by: Phil Harvey on September 07, 2010, 10:51:47 AM
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
Title: Re: Fullpath and createdate
Post by: schlemiel29 on September 08, 2010, 04:40:55 AM
Hi Phil,
thank you very much, that's a possible way.
Dirk