Processing images in another directory

Started by ProAssist, May 21, 2016, 06:42:02 AM

Previous topic - Next topic

ProAssist

I am running exiftool from my program directory were I create 2 files, one is a list of photo files in a differant directory and the other is a json file with metadata tags for each photo in the photo directory with SourceFile = FileName.jpg specified for each file.  Is there any way to specify the photo directory so that I could run the command: "C:\Program Directory\exiftool.exe" -json=metadata.json -@ listoffiles.txt and have exiftool be able to find the files in the photo directory?

Thanks


Phil Harvey

If you run the command from inside the directory containing the images, and remove the directory names from the listoffiles.txt, then I think it should work.

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

ProAssist

The photo directory is shared with the users and I do not want them to have access to the exiftool program or have them see the temporary txt and json files I am creating.  Is there any way for me to create these files in my program directory and then run exiftool to process files in the photo directory?

Hayo Baan

Sure, just make sure to do as Phil suggested and run the exiftool command from the photo directory and specify the exact location of the json and filelist files e.g.:
cd C:\PHOTODIR
C:\Program Directory\exiftool.exe -json=C:\TEMP\metadata.json -@ C:\TEMP\listoffiles.txt


Hope this helps,
Hayo
Hayo Baan – Photography
Web: www.hayobaan.nl

ProAssist

I had my program create a script to run exiftool

@Echo off
<Change Drives>
<Change Path>
C:\Program Directory\exiftool.exe -json=C:\TEMP\metadata.json -@ C:\TEMP\listoffiles.txt

It works - Thank you for your help.

Hayo Baan

Hayo Baan – Photography
Web: www.hayobaan.nl