Main Menu

use in a batch

Started by Archive, May 12, 2010, 08:54:46 AM

Previous topic - Next topic

Archive

[Originally posted by mfeske on 2010-03-15 04:36:51.548329-07]

Hello everybody,
what must I change when I will only convert files where is "_wm_" in the name ?

Now I use %device%%in% -ext png -ext jpg -ext tif but then all files are converted ans a file names _original is theire (which I not want).

Thanks for your help
Micha

Archive

[Originally posted by exiftool on 2010-03-15 04:46:18.914001-07]

Hi Micha,

It sounds like you want "*_wm_*.png *_wm_*.jpg *_wm_*.tif" on the command line.
However, you won't be able to use the -r option when processing
files with specific names like this.

- Phil

Archive

[Originally posted by mfeske on 2010-03-15 05:23:53.199696-07]

... thanks pfil i will try it.

Archive

[Originally posted by mfeske on 2010-03-15 05:44:48.044391-07]

Phil now I hvae tested, but 0 image files readed :-(
The Filename is
de_852369_0001_wm_m.jpg
the command line is
-ext *_wm.png -ext *_wm*.jpg -ext *_wm.tif

without * it works

Greetings
Micha

Archive

[Originally posted by exiftool on 2010-03-15 05:48:09.128073-07]

What I have suggested will work on Mac/Linux, but apparently
Windows handles wildcards differently.  There should be a similar
method that would work for Windows.

- Phil

Archive

[Originally posted by mfeske on 2010-03-15 05:48:45.766194-07]

Hello Phil,
with *_wm*.jpg it works but than its de_852369_0001.jpg included to :-(

Archive

[Originally posted by exiftool on 2010-03-15 06:25:52.696523-07]

I'm duplicating this post because it went to the wrong thread:

An alternative is to add a -if option to your
original command, so it looks  something like this:

Code:
... -ext png -ext jpg -ext tif -if "$filename =~ /_wm_/" ...

- Phil