Creating a user-prompt to input a project id/number

Started by jeswin, November 16, 2016, 12:48:46 AM

Previous topic - Next topic

jeswin

Hello,

I'm very new to ExifTool (just started playing with it today), and was wondering if there's a clever way to prompt for a user-input when you run exiftool, at which point I could enter in a number (for example:  23443) that represents a unique identifier for each of my project numbers.  I would then like to take this input and use it as part of my file renaming scheme for each of my .nef files.  Is this possible?

I'm using the windows command line tool by the way.

Thanks very much in advance!

Cheers,
Jeswin

Phil Harvey

Hi Jeswin,

I think this can be done with a .bat file, which could look something like this:

SET /P value= Please enter project number:
exiftool -d "%%Y-%%m-%%d" "-filename<${datetimeoriginal}-%value%.%%e" %*


Then you can drag and drop files and/or folders on the .bat file to rename the files in a project.

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