Using DIR to obtain all Tags

Started by evilaro, January 18, 2011, 12:17:24 PM

Previous topic - Next topic

evilaro

Hi:

I use this format to get 3 tags of a file.

run(false, 'exiftool.exe  -ISO -filename -aperture  "DSCN0331.JPG"  > result.txt')         
and it works fine

I would like to get the same result BUT of ALL the images on a directory.
where  for example DIR ='E:\MYPICTURES\THIS WEEKEND'

So I try something like this

run(false, 'exiftool.exe  -ISO -filename -aperture  DIR  > result.txt') 

But the directory is NOT found

I also have tried using the   -r   parameter, but the same result.

I am sure it must be simple... but i am not getting it.


Thanks

Emilio
                         
www.evilfoto.eu
*************

Phil Harvey

Hi Emilio,

Reading from a directory is the same as reading from a file.

Did you try this?:

run(false, 'exiftool.exe  -ISO -filename -aperture  "E:\MYPICTURES\THIS WEEKEND"  > result.txt')

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

evilaro

Hi Phil:

I use dBASE PLUS  so it needs some more helping...
putting the ' and " in the right place as you suggest... all works.

run(false, 'exiftool.exe  -ISO -filename -aperture  "&DIR"  > result.txt')


Thanks a lot

Emilio




Quote from: Phil Harvey on January 18, 2011, 12:33:30 PM
Hi Emilio,

Reading from a directory is the same as reading from a file.

Did you try this?:

run(false, 'exiftool.exe  -ISO -filename -aperture  "E:\MYPICTURES\THIS WEEKEND"  > result.txt')

- Phil
www.evilfoto.eu
*************