ExifTool Forum

ExifTool => Developers => Topic started by: evilaro on January 18, 2011, 12:17:24 PM

Title: Using DIR to obtain all Tags
Post by: evilaro on January 18, 2011, 12:17:24 PM
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
                         
Title: Re: Using DIR to obtain all Tags
Post by: 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
Title: Re: Using DIR to obtain all Tags
Post by: evilaro on January 18, 2011, 12:50:46 PM
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