Page 1 of 1

Rotate 90< .bat

Posted: 2017-07-28T01:54:12-07:00
by architektura
when I want to go with files into forfiles loop in.bat file I get strange info:

Code: Select all

this is my source of bat file:
forfiles /s /m *.JPG /p "C:\im\test" /c "cmd /c "c:\im\magick.exe" convert @path -rotate "90<" @path"

Code: Select all

this is what I get into cmd line - error with code "90 0<" :
 forfiles /s /m *.JPG /p "C:\im\test" /c "cmd /c "c:\im\magick.exe" convert @path -rotate "90  0<" @path"
90< vs 90 0<

I cant remeber what signs/apostrophes can I use to prevent this error - any help needed :)
thank
arc

Re: Rotate 90< .bat

Posted: 2017-07-28T06:46:03-07:00
by GeeMack
architektura wrote: 2017-07-28T01:54:12-07:00I cant remeber what signs/apostrophes can I use to prevent this error - any help needed
Try it with a caret "^" in front of the "<" like this...

Code: Select all

... -rotate 90^< ...

Re: Rotate 90< .bat

Posted: 2017-07-30T22:51:09-07:00
by architektura
Thank You mr GeeMack!