Then create the batch file, save it somewhere (like 'E:\jpgren.cmd'), create a new user menu item, name it, type the program path 'E:\jpgren.cmd' into the Command field, leave the Arguments field empty, leave Initial directory to be $(FullPath), leave all options set, and enjoy.
Well, it's probably a little bit more difficult than that, otherwise you wouldn't ask, right? You have to escape the percent characters ('%') in the batch file in order to pass them to the program (normally, they're interpreted as variables to be expanded). So, the code
Code: Select all
jhead.exe -n%y%m%d_%H%M%S -exonly *.jpg
^^^ ^^^^ ^^^
actually generates a command like
because there are no environment variables 'y', 'd_' nor 'M' and they're expanded to empty strings.
The code should look like
Code: Select all
jhead.exe -n%%y%%m%%d_%%H%%M%%S -exonly *.jpg
in order to work as wanted, rendering the batch file as follows:
Code: Select all
echo.
echo ATTENTION !!!
echo ====================
echo.
echo All JPG-files are going to be renamed:
echo yymmtt_hhmmss.jpg
echo.
pause
jhead.exe -n%%y%%m%%d_%%H%%M%%S -exonly *.jpg
Please, reply whether this is what you asked for.
@SvA] Looks like you were quicker.
Ελληνικά rulez.