First of all: I solved the codepage problem. I had to think the other way round and let DOS change the output to the ANSI code page, i.e. 1252, via:
CHCP 1252 There should also be an option to the command processor /A performing that job, but this did not work on my Windows XP machine. (/U, switching the output to unicode, however worked...) > You can test for the /v:on option being set, and have the batch file > self-invoke itself, using /v:on the second time, to be safe... I don't see how this testing could be done. To be on the safe side, you would have to start another command shell anyway, I guess. In order to transport information from one command shell into another, you would have to write it into a file, I guess. At the end, the whole thing would probably get much trickier than just starting another batch file. Or could you give an easy example how to do it? > Or you can set the registry entry that turns /v:on unconditionally, as > documented in the help text I pointed at in my first response. Well, the help output is rather lengthy, but you're right. Here is the REG file which switches this option on: ========================================= Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor] "DelayedExpansion"="1" [HKEY_CURRENT_USER\Software\Microsoft\Command Processor] "DelayedExpansion"="1" ========================================= Setting the HKEY_CURRENT_USER is optional. I am bothering this forum with all this, because I would like to add this example (and all the hints) to http://www.imagemagick.org/Usage/windows/. Thanks for your help so far. Wolfgang Hugemann _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
