ExifTool Forum

ExifTool => Newbies => Topic started by: mtroja on October 07, 2019, 05:17:19 AM

Title: Long list of files
Post by: mtroja on October 07, 2019, 05:17:19 AM
Hello
I'm doing my first steps with the Exiftool and I want to read tags from a long list of specified files.
The command is about this:

"C:\Program Files\ExifTool\exiftool.exe" -f -s -d "%%d.%%m.%%Y %%H:%%M:%%S" "F:\Bilder\IMG-20190921-WA0001.jpg" ..................... "F:\Bilder\IMG-20190921-WA0300.jpg"  -Directory -FileName -DateTimeOriginal -CreateDate -FileCreateDate -k > "E:\tmp.txt"

"....................." means there are lot of filenames

The command ist written in a batch-file which I start from VBA. This works fine, but when the command is longer then 8191 characters there's a problem, because the commandline doesn't support such long commands.

I can write long arguments in an argfile via the "-@"-Tag. But this didn't work for the filelist.
Any solutions for the problem?

Thank you very much

mtroja
Title: Re: Long list of files
Post by: Phil Harvey on October 07, 2019, 07:14:39 AM
The -@ argfile does work for file lists.  Don't quote the file names.

- Phil
Title: Re: Long list of files
Post by: mtroja on October 07, 2019, 08:28:36 AM
Perfect.
I quoted the filenames because of spaces in some foldernames, when I tried -@.
Without quotes it works.
Thank you very much for the quick help.
mtroja