[need_help]Bat:two lines change to one line

Started by NJ13SJ, August 19, 2012, 09:25:14 PM

Previous topic - Next topic

NJ13SJ

[need_help]Bat:How change two linesto one line???

renamejpg.bat


exiftool -d "%%Y-%%m-%%d_%%H-%%M-%%S%%%%-c.%%%%e" "-filename<CreateDate" -ext jpg .
exiftool "-filename<%%f_${imagesize}_${Exif:Model}.%%e" -ext jpg .


Phil Harvey

exiftool -d "%%Y-%%m-%%d_%%H-%%M-%%S" "-filename<${CreateDate}%%-c_${imagesize}_${Exif:Model}.%%e" -ext jpg .

The only difference will be that the %c will be different because it will now only increment if the date, imagesize and model are all the same.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

NJ13SJ

Quote from: Phil Harvey on August 20, 2012, 07:39:15 AM
exiftool -d "%%Y-%%m-%%d_%%H-%%M-%%S" "-filename<${CreateDate}%%-c_${imagesize}_${Exif:Model}.%%e" -ext jpg .

The only difference will be that the %c will be different because it will now only increment if the date, imagesize and model are all the same.

- Phil


My BAT running speed will increase one times.

:)Very powerful!3Q!