ExifTool Forum

ExifTool => Newbies => Topic started by: steve02476 on July 14, 2016, 11:35:57 AM

Title: using exe filename to create csv export?
Post by: steve02476 on July 14, 2016, 11:35:57 AM
I'm new at ExifTool but already there are two features I love:
(1) The ability on Windows to make copies of the exiftool windows app but with commands embedded in the filename so you can have a bunch of special purpose apps - brilliant!
(2) the ability to export a csv file with information about multiple files - also brilliant!

My problem is that I can't get my two favorite features to work together.

On the windows command line, I can run

exiftool.exe  -k -a -u  -g1 -csv  c:\pictures\8231 >c:\pictures\8231\8231.csv

and it works great!

If I rename the filename to exiftool(-k -a -u -g1 -csv).exe and drop the folder of images on it it seems to create the cvs file in the command window ok,but  when I change the filename to exiftool(-k -a -u -g1 -csv=output.csv).exe I get errors indicating the exiftool is looking for the csv file as an input, where I'm expecting to make it be the output. Not allowed to put a '>' in the filename.

Can I create an application filename for exiftool that will let me drop a folder on it it and have it create a CSV export file? I could rig something up with a batch file and an icon I know, but I'd rather just use the exiftool application name trick if possible.

Thanks very much for this great software!  -Steve
Title: Re: using exe filename to create csv export?
Post by: Phil Harvey on July 14, 2016, 11:38:48 AM
Hi Steve,

You can do what you want with a .BAT file containing this command line:

exiftool.exe -k -a -u -g1 -csv %* > output.csv

- Phil
Title: Re: using exe filename to create csv export?
Post by: steve02476 on July 14, 2016, 12:45:50 PM
 :D :D

Thanks a ton, that works and it's a great technique, Much appreciated!