using exe filename to create csv export?

Started by steve02476, July 14, 2016, 11:35:57 AM

Previous topic - Next topic

steve02476

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

Phil Harvey

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

steve02476

 :D :D

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