percent signs in command line
Posted: 2009-06-01T23:29:54-07:00
Does anyone have experience with using convert commands with percent signs in a windows batch file? I searched the forum and found that doubling the percent sign worked for most people but it doesn't work for me.
I have the following command in a batch file:
As you see I doubled the percent sign. When I run this command inside the shell, by typing it out, I don't double the percent sign and convert executes properly.
But running this batch file I get this:
convert: invalid argument for option `75\Documents': -resize.
It's like it is ignoring everything starting with the %% and ending with :
Why is that and is there a work around?
Thanks,
a1
I have the following command in a batch file:
Code: Select all
CALL convert -rotate 2.958639 -resize 75%% -crop '880x1410+704-25' "c:\Documents and Settings\username\My Documents\IMG_3851.JPG" "c:\temp\1-IMG_3851.jpg"
But running this batch file I get this:
convert: invalid argument for option `75\Documents': -resize.
It's like it is ignoring everything starting with the %% and ending with :
Why is that and is there a work around?
Thanks,
a1