ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: licca on January 17, 2021, 01:29:52 PM

Title: What is the sense of naming "exiftool(-k).exe" for the windows version ?
Post by: licca on January 17, 2021, 01:29:52 PM
Hi,

Of course it is no problem to rename "exiftool(-k).exe" to just "exiftool.exe" for command line use of the windows version.

But I really dont understand the sense of the naming exiftool(-k).exe for the windows version.

Maybe some ideas? Many thanks!  :)
Title: Re: What is the sense of naming "exiftool(-k).exe" for the windows version ?
Post by: Phil Harvey on January 17, 2021, 01:33:07 PM
The ExifTool application for Windows has the ability to take command-line arguments from inside the brackets in its own name.

If you run without any additional arguments, you can read this in the documentation:

    This stand-alone Windows version allows simple command-line options to
    be added to the name of the executable (in brackets and separated by
    spaces at the end of the name), providing a mechanism to use options
    when launched via the mouse. For example, changing the executable name
    to "exiftool(-a -u -g1 -w txt).exe" gives a drag-and-drop utility which
    generates sidecar ".txt" files with detailed meta information. As
    shipped, the -k option is added to cause exiftool to pause before
    terminating (keeping the command window open). Options may also be added
    to the "Target" property of a Windows shortcut to the executable.

- Phil
Title: Re: What is the sense of naming "exiftool(-k).exe" for the windows version ?
Post by: geody on February 03, 2025, 10:06:51 AM
The flag argument -k means "Pause before terminating". Why is it so important that ExifTool pause before terminating that it should be included in the filename? And if it is so important, why not make it the default behavior and use a flag to skip the pause instead?
Title: Re: What is the sense of naming "exiftool(-k).exe" for the windows version ?
Post by: Phil Harvey on February 03, 2025, 10:10:04 AM
The pause is necessary if you drag-and-drop files onto ExifTool, so the -k is there to make it more simple for inexperienced users.

- Phil
Title: Re: What is the sense of naming "exiftool(-k).exe" for the windows version ?
Post by: StarGeek on February 03, 2025, 10:36:02 AM
The answer is literally in the blue text of the post just above yours.