Windows 11, exiftool(-k).exe and exiftool.exe

Started by JetFusion, May 09, 2025, 06:22:16 AM

Previous topic - Next topic

JetFusion

Good afternoon

Thank you for this program and hopefully you can assist.

When I drag and drop onto the exiftool(-k).exe I get the info but when I want to export to .csv I get the following error - C:\ExifTool\exiftool_files\perl5*.dll the folders are all together as when extracted.

What command do I run to export all jpg to csv I have this but it doesn't do anything using drag and drop
exiftool -all -csv *.jpg > metadata.csv

Thanking you in advance

Regards
Jet

FixEUser

A Windows Batch-CMD-File like "ExportAllJPGMetadatainThisFolder.cmd" and your content
exiftool -all -csv *.jpg > metadata.csv
works as expected and creates a metadata.csv in the same folder as the .cmd file itself.
It contains many metadata like
SourceFile,BitsPerSample,BlueMatrixColumn,BlueTRC,CMMFlags,ColorComponents,ColorSpaceData,ConnectionSpaceIlluminant,DeviceAttributes,DeviceManufacturer,DeviceModel,Directory,EncodingProcess,ExifByteOrder,ExifToolVersion,FileAccessDate,FileCreateDate,FileModifyDate,FileName,FilePermissions,FileSize,FileType,FileTypeExtension,GreenMatrixColumn,GreenTRC,ImageHeight,ImageSize,ImageWidth,JFIFVersion,MediaBlackPoint,MediaWhitePoint,Megapixels,MIMEType,PrimaryPlatform,ProfileClass,ProfileCMMType,ProfileConnectionSpace,ProfileCopyright,ProfileCreator,ProfileDateTime,ProfileDescription,ProfileFileSignature,ProfileID,ProfileVersion,RedMatrixColumn,RedTRC,RenderingIntent,ResolutionUnit,Software,XResolution,YCbCrSubSampling,YResolution,ZoneIdentifier
You have to check that the exiftool.exe exists in the same folder as your CMD-file.
Otherwise you would have to use the complete path name to your exiftool.exe and to your metadata.csv

Phil Harvey

Also, it is not recommended to use -csv output for a large number of files due to the memory requirements.  -json is a much better format for this.

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

StarGeek

Quote from: JetFusion on May 09, 2025, 06:22:16 AMWhen I drag and drop onto the exiftool(-k).exe I get the info but when I want to export to .csv I get the following error - C:\ExifTool\exiftool_files\perl5*.dll the folders are all together as when extracted.

What command do I run to export all jpg to csv I have this but it doesn't do anything using drag and drop
exiftool -all -csv *.jpg > metadata.csv

I'm a little confused as to how you are actually trying to drag/drop. Did you create a BAT file with your command?  Because it's not possible to use the drag/drop Windows feature with that command. The greater than sign > is a special character and cannot be used as part of a filename.

@FixEUser is on the right track in creating a BAT file, but as written, it doesn't have drag drop capability. You would want to create a BAT file with this
exiftool -all -csv -ext jpg %* > metadata.csv

You would have to use the -ext (-extension) option to limit processing to JPEGs, because the %* is the BAT file parameter that will hold the names that are drag/dropped. Using *.jpg will only list JPEGs that are in the same directory as the BAT file.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype