ExifTool Forum

ExifTool => Install Problems => Topic started by: JetFusion on May 09, 2025, 06:22:16 AM

Title: Windows 11, exiftool(-k).exe and exiftool.exe
Post by: JetFusion on May 09, 2025, 06:22:16 AM
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
Title: Re: Windows 11, exiftool(-k).exe and exiftool.exe
Post by: FixEUser on May 09, 2025, 08:18:40 AM
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
Title: Re: Windows 11, exiftool(-k).exe and exiftool.exe
Post by: Phil Harvey on May 09, 2025, 09:17:14 AM
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
Title: Re: Windows 11, exiftool(-k).exe and exiftool.exe
Post by: StarGeek on May 09, 2025, 09:49:12 AM
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 (https://exiftool.org/index.html#running) 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 (https://exiftool.org/exiftool_pod.html#ext-EXT---ext-EXT--extension) 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.