ExifTool Forum

ExifTool => Newbies => Topic started by: metadataddicted on April 07, 2025, 06:32:32 PM

Title: Formatting output
Post by: metadataddicted on April 07, 2025, 06:32:32 PM
Hello everyone,
I would like to format the console output of a command like this:
exiftool.exe -overwrite_original_in_place -P -r -ext dng -XMP:XMP-crs:RawFileName<PreservedFileName .

I would like to print, for every file processed, a custom string, such as:
some spaces, the filename, [file number/total files]

Hello everyone,
I would like to format the console output of a command like this:
exiftool.exe -overwrite_original_in_place -P -r -ext dng -XMP:XMP-crs:RawFileName<PreservedFileName .

I would like to print, for every file processed, a custom string, such as:
some spaces, the filename, [file number/total files]

I would like to get an indented log such as:

process begin
    section 1 begin
           file 1 [1/10]
           file 2 [2/10]
           ...
           file 10 [10/10]
    section 1 end
process end

I have tried looking into -progress and -p options but I am not finding any way to start with. -p option seems to have what I need but when I put it in a command line where i assign some tag, nothing gets printed.

Is there any way to get something like this?
Thanks

Title: Re: Formatting output
Post by: Phil Harvey on April 07, 2025, 09:28:36 PM
The output formatting options all apply only when reading metadata.  There is no option to format the output if you are writing to tags.  The only options when writing are to include additional information in the output. (I can think of only -progress and -v that do this.)

- Phil
Title: Re: Formatting output
Post by: metadataddicted on April 08, 2025, 03:13:06 PM
Hi Phil,
ok, I can use -progress.
Thank you for your answer.