Bat file for only certain file types

Started by luvnrocs, June 11, 2015, 03:09:59 PM

Previous topic - Next topic

luvnrocs

I need to create a bat file that will add metadata to both TIF and PDF files within folders/subfolders, but the metadata is different for each filetype.

Right now I have a bat file that will apply metadata to all files in a folder/subfolder:
exiftool -make="Fujitsu" -model="fi-6770" -source="News Office records, AC69, Series 1. -m -r -overwrite_original %1

How do I apply this to just the TIF files?
Secondly can I create another line in the bat file that can apply different metadata to the PDF files?

Phil Harvey

Yes, certainly.  See the -ext option in the documentation.

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