Hi,
I am trying to generate index prints of all photographs contained in certain
directories (contaning the word "digibis") in a Windows directory tree. This is
done by the help of two DOS batch files:
SET COUNT=0
FOR /F %%a in ('DIR /S /B /AD ^| Find "digibis"') DO Call c.bat "%%a"
An "c.bat" being:
SET /A COUNT+=1
ECHO %~1 >title.txt
montage -geometry 210x140+0+5 -tile 6x -font courier -pointsize 8 -title
@title.txt %1\*.jpg -quality 30%% %count%.jpg
The problem occurs in the last line of "c.bat", where German umlauts are
interchanged by crude characters. Is there any means by which I can instruct
montage to use a certain coding for the text supplied in "title.txt"?
........................
I will now shortly explain what's happening in the batch files, although this
is not neccessary to understand my problem:
The two batch files are placed in the root directory of the tree and are called
from there.
The FOR loop in the first batch file runs through the directory tree, filters
all directory names containing the string "digibis" and passes each of these
directories to C.BAT as the single command line parameter.
C.BAT increases the environment variable COUNT, echoes the directory name into
TITLE.TXT (which is necessary because of the backslash used in Windows
pathnames, which would otherwise be considered as starting an escape sequence).
MONTAGE then generates an index print of all images in the subdirectory and
stores it in the file N.JPG in the root directory, with N being an integer
number.
Please note that the operation performed in C.BAT cannot be performed within
the FOR loop, even not if bracketed by parantheses "(", ")": The environment
variable COUNT would not be increased while running the FOR loop (for reasons
that I could not figure out...).
Greetings from Germany
Wolfgang Hugemann
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users