Index problem with identify in DOS FOR loop

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
kankwayot

Re: Index problem with identify in DOS FOR loop

Post by kankwayot »

The problem you encounter with blanks does not come from identify, it's that some are by default delimiters for for ..
-> try to replace for /f %%i
by for /f "delims=" %%i
which is such that no delimiter is defined.
paddy

Re: Index problem with identify in DOS FOR loop

Post by paddy »

fmw42 wrote:
Do you mean the page that you earlier referred me to (above)?
I have read that page, but did you (or Wolgang Hugemann) have further comments or clarifications to make in addition to your earlier post?
Yes, but all I know was that he said to look at the part about "enabling delayed expansion"

Sorry I cannot be of more help. Perhaps when he gets back, he can comment further.
No that's fine, no need to apologize.
That page WAS useful, and the original problem is now solved thanks to the advice on that page and some useful tips from other people.

The only remaining issue is the one I most recently noted above where the identify statement is only returning partial IPTC information.

MODERATORS: I think I should move this issue with the IPTC info. into it's own thread, as it's a different issue altogether from the original subject of this post: " Index problem with identify in DOS FOR loop" which is now solved.

Sorry in advance for any duplication.

Cheers
jaffamuffin
Posts: 59
Joined: 2009-01-30T03:46:08-07:00

Re: Index problem with identify in DOS FOR loop

Post by jaffamuffin »

It seems like you've solved your problem there.

You can use SETLOCAL ENABLEDELAYEDEXPANSION at the start of your script to enable the mode you need. Also http://ss64.com/ is invaluable resourse when doing stuff in XP Cmd environment.
Post Reply