ExifTool Forum

ExifTool => Newbies => Topic started by: jeswin on November 16, 2016, 12:48:46 AM

Title: Creating a user-prompt to input a project id/number
Post by: jeswin on November 16, 2016, 12:48:46 AM
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
Title: Re: Creating a user-prompt to input a project id/number
Post by: Phil Harvey on November 16, 2016, 07:34:07 AM
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