IF Statement help

Started by bchi99, April 04, 2019, 02:41:37 PM

Previous topic - Next topic

bchi99

HI there,

I have a folder with a ton of tiff files in various sub folders. I want to write to a text file the full path and filename for .tif files that have the compression of LZW. I'm stuck so far but have this:

exifTool -q -T -FileName -if "$Compression eq 'LZW'" -ext tif FILES_or_DIRS

Thanks

StarGeek

What is the part you're stuck on?  That command works here.

To redirect it into a file, add >Filelist.txt  To get the full file path, use -FilePath instead of -FileName
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

bchi99

I got:

Error: File not found - FILES_or_DIRS

StarGeek

"FILES_or_DIRS" is a placeholder for the files and/or directories you wish to process.  Replace it with the actual file paths.  If you want to process the current directory, use a single dot .

exifTool -q -T -FileName -if "$Compression eq 'LZW'" -ext tif .
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

bchi99

lol boy do i feel dumb.  It works thanks very much.

bchi99

thanks for your help.  The text doc only lists the filename. Is there a way to include the full path+the filename?

StarGeek

* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).